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 c535608c6f53446e68e2dab4d0802b6a2072e7a9
Author: Randall Leeds <[email protected]>
AuthorDate: Wed Dec 30 22:18:06 2020 -0800

    Make tests their own TypeScript project
---
 .eslintrc.js                        | 2 +-
 .gitignore                          | 1 +
 tsconfig.json                       | 9 +++------
 tsconfig.json => tsconfig.test.json | 6 +-----
 4 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 59e0c79..aecc225 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -106,7 +106,7 @@ module.exports = {
         'prettier/@typescript-eslint',
       ],
       parserOptions: {
-        project: ['./tsconfig.json', './packages/*/tsconfig.json'],
+        project: ['./tsconfig.test.json', './packages/*/tsconfig.json'],
         tsconfigRootDir: __dirname,
       },
       plugins: ['@typescript-eslint'],
diff --git a/.gitignore b/.gitignore
index 44c4e74..b16de92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
 coverage
 node_modules
 tsconfig.tsbuildinfo
+tsconfig.test.tsbuildinfo
 /packages/*/DISCLAIMER-WIP
 /packages/*/LICENSE
 /packages/*/NOTICE
diff --git a/tsconfig.json b/tsconfig.json
index f250929..b9a2c0d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,12 +1,9 @@
 {
-  "extends": "./tsconfig.base.json",
-  "include": [
-    "test/**/*",
-    "packages/*/test/**/*",
-  ],
+  "files": [],
   "references": [
     { "path": "packages/apache-annotator" },
     { "path": "packages/dom" },
-    { "path": "packages/selector" }
+    { "path": "packages/selector" },
+    { "path": "tsconfig.test.json"}
   ]
 }
diff --git a/tsconfig.json b/tsconfig.test.json
similarity index 54%
copy from tsconfig.json
copy to tsconfig.test.json
index f250929..f439fba 100644
--- a/tsconfig.json
+++ b/tsconfig.test.json
@@ -1,11 +1,7 @@
 {
   "extends": "./tsconfig.base.json",
-  "include": [
-    "test/**/*",
-    "packages/*/test/**/*",
-  ],
+  "include": ["test", "packages/*/test"],
   "references": [
-    { "path": "packages/apache-annotator" },
     { "path": "packages/dom" },
     { "path": "packages/selector" }
   ]

Reply via email to