Put rootDirs into subprojects

- typings do not work for any ts or svelte files
- if we set the 'rootDirs' in ts/tsconfig.json to '../bazel-bin/ts' and then inherit
  them from e.g. editor, the root will be changed to '../../bazel-bin/ts',
  however editor needs look in '../../bazel-bin/ts/editor' instead.
This commit is contained in:
Henrik Giesel 2021-10-02 22:00:28 +02:00
parent 7c70d26fe7
commit e1d4292ce3
11 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/change-notetype"],
"include": ["*"], "include": ["*"],
"references": [ "references": [
{ "path": "../lib" }, { "path": "../lib" },

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/components"],
"include": ["*"], "include": ["*"],
"references": [{ "path": "../lib" }, { "path": "../sveltelib" }] "references": [{ "path": "../lib" }, { "path": "../sveltelib" }]
} }

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/congrats"],
"include": ["*"], "include": ["*"],
"references": [{ "path": "../lib" }] "references": [{ "path": "../lib" }]
} }

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/deck-options"],
"include": ["*"], "include": ["*"],
"references": [ "references": [
{ "path": "../lib" }, { "path": "../lib" },

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/editable"],
"include": ["*"], "include": ["*"],
"references": [ "references": [
{ "path": "../components" }, { "path": "../components" },

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/editor"],
"include": ["*"], "include": ["*"],
"references": [ "references": [
{ "path": "../components" }, { "path": "../components" },

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/html-filter"],
"include": ["*"], "include": ["*"],
"references": [], "references": [],
"compilerOptions": { "compilerOptions": {

View file

@ -1,6 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*", "../../bazel-bin/ts/lib/*"], "include": ["*", "../../bazel-bin/ts/lib"],
"references": [], "references": [],
"compilerOptions": { "compilerOptions": {
"types": ["jest"] "types": ["jest"]

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/reviewer"],
"include": ["*"], "include": ["*"],
"references": [{ "path": "../lib" }] "references": [{ "path": "../lib" }]
} }

View file

@ -1,5 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"rootDirs": ["../../bazel-bin/ts/sveltelib"],
"include": ["*"], "include": ["*"],
"references": [{ "path": "../lib" }] "references": [{ "path": "../lib" }]
} }

View file

@ -32,11 +32,6 @@
// "outDir": "dist", // "outDir": "dist",
// "rootDir": "..", // "rootDir": "..",
"rootDir": ".", "rootDir": ".",
"rootDirs": [
".",
// for VS code
"../bazel-bin/ts"
],
"baseUrl": ".", "baseUrl": ".",
"paths": {}, "paths": {},
"types": [], "types": [],