From a1719ee08edff0bc0931e50ad521bb668edc31ee Mon Sep 17 00:00:00 2001 From: Joram van den Boezem Date: Fri, 29 Sep 2023 00:11:47 +0700 Subject: [PATCH] chore: seems like path is not needed --- README.md | 8 ++++---- packages/cli/tsconfig.json | 7 +------ packages/plugins/tsconfig.json | 5 +---- packages/templates/tsconfig.json | 6 +----- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 25581eca..48694c29 100644 --- a/README.md +++ b/README.md @@ -426,16 +426,16 @@ And reference dependant workspaces in the workspace `tsconfig.json`: "compilerOptions": { "rootDir": "src", "outDir": "dist", - "declarationDir": "types", - "paths": { - "@scope/some-dependency": ["../some-dependency/src"] - } + "declarationDir": "types" }, "references": [{ "path": "../some-dependency" }], "include": ["src/**/*"] } ``` +You can optionally sync project references with +`yarn dlx workspaces-to-typescript-project-references`. + ## `xv` _Scope: repo or workspace_ diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 56b9584d..c0041aec 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -3,12 +3,7 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "declarationDir": "types", - "paths": { - "@mokr/core": ["../core/src"], - "@mokr/plugins": ["../plugins/src"], - "@mokr/templates": ["../templates/src"] - } + "declarationDir": "types" }, "references": [ { "path": "../core" }, diff --git a/packages/plugins/tsconfig.json b/packages/plugins/tsconfig.json index aa34d408..1f808454 100644 --- a/packages/plugins/tsconfig.json +++ b/packages/plugins/tsconfig.json @@ -3,10 +3,7 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "declarationDir": "types", - "paths": { - "@mokr/core": ["../core/src"] - } + "declarationDir": "types" }, "references": [{ "path": "../core" }], "include": ["src/**/*"] diff --git a/packages/templates/tsconfig.json b/packages/templates/tsconfig.json index be61bab5..cc7dfb5c 100644 --- a/packages/templates/tsconfig.json +++ b/packages/templates/tsconfig.json @@ -3,11 +3,7 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "declarationDir": "types", - "paths": { - "@mokr/core": ["../core/src"], - "@mokr/plugins": ["../plugins/src"] - } + "declarationDir": "types" }, "references": [{ "path": "../core" }, { "path": "../plugins" }], "include": ["src/**/*"]