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/**/*"]