mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/change-notetype"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../lib" },
|
{ "path": "../lib" },
|
||||||
|
|
|
@ -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" }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/congrats"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [{ "path": "../lib" }]
|
"references": [{ "path": "../lib" }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/deck-options"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../lib" },
|
{ "path": "../lib" },
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/editable"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../components" },
|
{ "path": "../components" },
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/editor"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../components" },
|
{ "path": "../components" },
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/html-filter"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [],
|
"references": [],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/reviewer"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [{ "path": "../lib" }]
|
"references": [{ "path": "../lib" }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
|
"rootDirs": ["../../bazel-bin/ts/sveltelib"],
|
||||||
"include": ["*"],
|
"include": ["*"],
|
||||||
"references": [{ "path": "../lib" }]
|
"references": [{ "path": "../lib" }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": [],
|
||||||
|
|
Loading…
Reference in a new issue