From 2af952d6ca3cb72a611c522562dd43bc8768686d Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Sat, 28 Sep 2024 22:46:28 +0200 Subject: [PATCH] Can't really use `.` as the rootDir This would in turn require us to adjust the exports accordingly, so reverting for now. --- openrewrite/src/javascript/index.ts | 1 + openrewrite/tsconfig.json | 2 +- openrewrite/tsconfig.test.json | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openrewrite/src/javascript/index.ts b/openrewrite/src/javascript/index.ts index 16da9e3f..2ad1345d 100644 --- a/openrewrite/src/javascript/index.ts +++ b/openrewrite/src/javascript/index.ts @@ -1,4 +1,5 @@ export * from './markers'; export * from './parser'; +export * from './projectParser'; export * from './tree'; export * from './visitor'; diff --git a/openrewrite/tsconfig.json b/openrewrite/tsconfig.json index fd1b5273..7c33f8aa 100644 --- a/openrewrite/tsconfig.json +++ b/openrewrite/tsconfig.json @@ -7,7 +7,7 @@ "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true, - "rootDir": ".", + "rootDir": "./src", "outDir": "./dist", "experimentalDecorators": true, "moduleResolution": "node16" diff --git a/openrewrite/tsconfig.test.json b/openrewrite/tsconfig.test.json index 765f3451..a3e18422 100644 --- a/openrewrite/tsconfig.test.json +++ b/openrewrite/tsconfig.test.json @@ -1,4 +1,7 @@ { "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./test" + }, "include": ["test/**/*.ts"], }