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:35 UTC

[incubator-annotator] branch master updated (2cea3e3 -> 05298c2)

This is an automated email from the ASF dual-hosted git repository.

randall pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.


    from 2cea3e3  Merge branch 'demo-empty-quote'
     new 90336e1  Output declarations to the lib directory
     new fd7c72c  Include all the tests in the root project
     new 05298c2  Raise the TypeScript target to es2018

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .eslintrc.js                    |  3 +++
 packages/dom/package.json       |  2 +-
 packages/dom/tsconfig.json      |  8 ++++----
 packages/selector/package.json  |  2 +-
 packages/selector/tsconfig.json |  7 ++++++-
 tsconfig.base.json              |  8 ++++++--
 tsconfig.json                   | 23 ++++++++++-------------
 7 files changed, 31 insertions(+), 22 deletions(-)


[incubator-annotator] 02/03: Include all the tests in the root project

Posted by ra...@apache.org.
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 fd7c72cc60ca1ffc881603073ceecd89224fc946
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Aug 9 20:25:37 2020 -0700

    Include all the tests in the root project
    
    In order not to emit the test declarations into the lib directory,
    simply include all the tests in the root project so that the
    declerations emit alongside the sources. The "tsc --clean" command
    cleans these.
    
    Standardize on the form of paths in tsconfig.json files.
---
 packages/dom/tsconfig.json      | 11 ++++-------
 packages/selector/tsconfig.json |  7 +++----
 tsconfig.base.json              |  6 +++++-
 tsconfig.json                   | 23 ++++++++++-------------
 4 files changed, 22 insertions(+), 25 deletions(-)

diff --git a/packages/dom/tsconfig.json b/packages/dom/tsconfig.json
index b8cb08f..02e0fcf 100644
--- a/packages/dom/tsconfig.json
+++ b/packages/dom/tsconfig.json
@@ -1,14 +1,11 @@
 {
   "extends": "../../tsconfig.base.json",
-  "include": ["./src/**/*"],
+  "include": ["src"],
   "compilerOptions": {
-    "rootDir": "./src",
-    "declarationDir": "./lib",
-    "lib": ["dom", "dom.iterable", "esnext"]
+    "outDir": "lib",
+    "rootDir": "src"
   },
   "references": [
-    {
-      "path": "../selector/tsconfig.json"
-    }
+    { "path": "../selector" }
   ]
 }
diff --git a/packages/selector/tsconfig.json b/packages/selector/tsconfig.json
index e3b9d4e..653b0a5 100644
--- a/packages/selector/tsconfig.json
+++ b/packages/selector/tsconfig.json
@@ -1,9 +1,8 @@
 {
   "extends": "../../tsconfig.base.json",
-  "include": ["./src/**/*"],
+  "include": ["src"],
   "compilerOptions": {
-    "rootDir": "./src",
-    "declarationDir": "./lib",
-    "lib": ["dom", "dom.iterable", "esnext"]
+    "outDir": "lib",
+    "rootDir": "src"
   }
 }
diff --git a/tsconfig.base.json b/tsconfig.base.json
index 0f07efa..e9f79ca 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -7,7 +7,11 @@
     "downlevelIteration": true,
     "emitDeclarationOnly": true,
     "isolatedModules": true,
-    "lib": ["es2020"],
+    "lib": [
+      "dom",
+      "dom.iterable",
+      "es2020"
+    ],
     "moduleResolution": "node",
     "strict": true,
     "target": "es2017"
diff --git a/tsconfig.json b/tsconfig.json
index 07873ec..7685922 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,17 +1,14 @@
 {
   "extends": "./tsconfig.base.json",
-  "include": ["./test"],
-  "compilerOptions": {
-    "composite": false,
-    "emitDeclarationOnly": false,
-    "noEmit": true
-  },
+  "include": [
+    "test/**/*",
+    "packages/*/test/**/*",
+  ],
   "references": [
-    {
-      "path": "./packages/dom/tsconfig.json"
-    },
-    {
-      "path": "./packages/selector/tsconfig.json"
-    }
-  ]
+    { "path": "packages/dom" },
+    { "path": "packages/selector" }
+  ],
+  "compilerOptions": {
+    "lib": ["dom", "dom.iterable", "es2018"]
+  }
 }


[incubator-annotator] 01/03: Output declarations to the lib directory

Posted by ra...@apache.org.
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"]
+  }
 }


[incubator-annotator] 03/03: Raise the TypeScript target to es2018

Posted by ra...@apache.org.
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 05298c299c38cab2de8a2f44f56e77dbae452499
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu Aug 20 20:10:45 2020 -0700

    Raise the TypeScript target to es2018
    
    Node.js v10 has full support for ECMAScript 2018 features, with only the
    exception of not throwing TypeError exceptions when a Proxy object
    returns an Array having duplicated entries from its ownKeys method. This
    target is consistent with that used by the recommended node10 base
    config.
    
    Also set the parser options for the build and configuration scripts.
---
 .eslintrc.js       | 3 +++
 tsconfig.base.json | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 2d6dd80..8672372 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -76,6 +76,9 @@ module.exports = {
         es2017: true,
         node: true,
       },
+      parserOptions: {
+        ecmaVersion: 2018,
+      },
       plugins: ['node'],
       rules: {
         'no-console': 'off',
diff --git a/tsconfig.base.json b/tsconfig.base.json
index e9f79ca..274039b 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -14,6 +14,6 @@
     ],
     "moduleResolution": "node",
     "strict": true,
-    "target": "es2017"
+    "target": "es2018"
   }
 }