mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
7c70d26fe7
commit
e1d4292ce3
11 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/change-notetype"],
|
||||
"include": ["*"],
|
||||
"references": [
|
||||
{ "path": "../lib" },
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/components"],
|
||||
"include": ["*"],
|
||||
"references": [{ "path": "../lib" }, { "path": "../sveltelib" }]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/congrats"],
|
||||
"include": ["*"],
|
||||
"references": [{ "path": "../lib" }]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/deck-options"],
|
||||
"include": ["*"],
|
||||
"references": [
|
||||
{ "path": "../lib" },
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/editable"],
|
||||
"include": ["*"],
|
||||
"references": [
|
||||
{ "path": "../components" },
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/editor"],
|
||||
"include": ["*"],
|
||||
"references": [
|
||||
{ "path": "../components" },
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/html-filter"],
|
||||
"include": ["*"],
|
||||
"references": [],
|
||||
"compilerOptions": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*", "../../bazel-bin/ts/lib/*"],
|
||||
"include": ["*", "../../bazel-bin/ts/lib"],
|
||||
"references": [],
|
||||
"compilerOptions": {
|
||||
"types": ["jest"]
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/reviewer"],
|
||||
"include": ["*"],
|
||||
"references": [{ "path": "../lib" }]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"rootDirs": ["../../bazel-bin/ts/sveltelib"],
|
||||
"include": ["*"],
|
||||
"references": [{ "path": "../lib" }]
|
||||
}
|
||||
|
|
|
@ -32,11 +32,6 @@
|
|||
// "outDir": "dist",
|
||||
// "rootDir": "..",
|
||||
"rootDir": ".",
|
||||
"rootDirs": [
|
||||
".",
|
||||
// for VS code
|
||||
"../bazel-bin/ts"
|
||||
],
|
||||
"baseUrl": ".",
|
||||
"paths": {},
|
||||
"types": [],
|
||||
|
|
Loading…
Reference in a new issue