diff --git a/packages/lingui-macro/tsconfig.build.json b/packages/lingui-macro/tsconfig.build.json index d3d1f5e..cf06e60 100644 --- a/packages/lingui-macro/tsconfig.build.json +++ b/packages/lingui-macro/tsconfig.build.json @@ -5,8 +5,8 @@ "outDir": "./dist", "rootDir": "./src-js", "declaration": true, - "module": "esnext", - "moduleResolution": "bundler" + "module": "nodenext", + "moduleResolution": "nodenext" }, "include": [ "src-js" diff --git a/packages/lingui-macro/tsconfig.json b/packages/lingui-macro/tsconfig.json index d8d9494..67e97d9 100644 --- a/packages/lingui-macro/tsconfig.json +++ b/packages/lingui-macro/tsconfig.json @@ -1,21 +1,10 @@ { - "compilerOptions": { - "target": "ES2022", - "noEmit": true, - "strict": true, - "outDir": "./dist", - "module": "esnext", - "moduleResolution": "bundler", - "types": [ - "vitest/globals", - "node" - ] - }, - "include": [ - "e2e", - "./vitest.config.ts" - ], - "exclude": [ - "node_modules" + "references": [ + { + "path": "tsconfig.build.json" + }, + { + "path": "tsconfig.test.json" + } ] } diff --git a/packages/lingui-macro/tsconfig.test.json b/packages/lingui-macro/tsconfig.test.json new file mode 100644 index 0000000..e2f46b4 --- /dev/null +++ b/packages/lingui-macro/tsconfig.test.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2024", + "noEmit": true, + "strict": true, + "module": "esnext", + "moduleResolution": "bundler", + "types": [ + "vitest/globals", + "node" + ] + }, + "include": [ + "e2e", + "./vitest.config.ts" + ], + "exclude": [ + "node_modules" + ] +}