Skip to content

Commit 2f3f849

Browse files
committed
fix(tsconfig): Set rootDir to centralize compilation output
Problem: TypeScript was creating .js and .js.map files next to source files in new-extension/ and old-extension/ directories because tsconfig included files from outside the project (../src/**/*.ts) without setting rootDir. Solution: Add 'rootDir: ".."' to comparison-test-harness/tsconfig.json This tells TypeScript the common ancestor of all included files, allowing it to properly map the directory structure into outDir. Before: adapter.js created at comparison-test-harness/new-extension/adapter.js After: adapter.js created at comparison-test-harness/out/comparison-test-harness/new-extension/adapter.js
1 parent 95c8969 commit 2f3f849

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

comparison-test-harness/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"forceConsistentCasingInFileNames": true,
1010
"resolveJsonModule": true,
1111
"moduleResolution": "node",
12+
"rootDir": "..",
1213
"outDir": "./out",
1314
"experimentalDecorators": true,
1415
"emitDecoratorMetadata": true,

0 commit comments

Comments
 (0)