You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/08/21 03:36:36 UTC
[incubator-annotator] 01/03: Output declarations to the lib
directory
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 90336e1b275bc1d72d604f0843a9ed5f4948dffc
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Aug 9 18:28:10 2020 -0700
Output declarations to the lib directory
---
packages/dom/package.json | 2 +-
packages/dom/tsconfig.json | 3 +++
packages/selector/package.json | 2 +-
packages/selector/tsconfig.json | 8 +++++++-
4 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/packages/dom/package.json b/packages/dom/package.json
index 6181f69..e2b198e 100644
--- a/packages/dom/package.json
+++ b/packages/dom/package.json
@@ -15,7 +15,7 @@
},
"main": "./lib/index.js",
"module": "./lib/index.mjs",
- "types": "./src/types.d.ts",
+ "types": "./lib/index.d.ts",
"dependencies": {
"@babel/runtime-corejs3": "^7.8.7",
"cartesian": "^1.0.1",
diff --git a/packages/dom/tsconfig.json b/packages/dom/tsconfig.json
index 66c98ee..b8cb08f 100644
--- a/packages/dom/tsconfig.json
+++ b/packages/dom/tsconfig.json
@@ -1,6 +1,9 @@
{
"extends": "../../tsconfig.base.json",
+ "include": ["./src/**/*"],
"compilerOptions": {
+ "rootDir": "./src",
+ "declarationDir": "./lib",
"lib": ["dom", "dom.iterable", "esnext"]
},
"references": [
diff --git a/packages/selector/package.json b/packages/selector/package.json
index 809d949..b3b4c47 100644
--- a/packages/selector/package.json
+++ b/packages/selector/package.json
@@ -15,7 +15,7 @@
},
"main": "./lib/index.js",
"module": "./lib/index.mjs",
- "types": "./src/index.d.ts",
+ "types": "./lib/index.d.ts",
"dependencies": {
"@babel/runtime-corejs3": "^7.8.7",
"core-js": "^3.6.4"
diff --git a/packages/selector/tsconfig.json b/packages/selector/tsconfig.json
index 9536a0f..e3b9d4e 100644
--- a/packages/selector/tsconfig.json
+++ b/packages/selector/tsconfig.json
@@ -1,3 +1,9 @@
{
- "extends": "../../tsconfig.base.json"
+ "extends": "../../tsconfig.base.json",
+ "include": ["./src/**/*"],
+ "compilerOptions": {
+ "rootDir": "./src",
+ "declarationDir": "./lib",
+ "lib": ["dom", "dom.iterable", "esnext"]
+ }
}