diff --git a/packages/utils/.npmignore b/packages/utils/.npmignore index bcf9211..007fb7e 100644 --- a/packages/utils/.npmignore +++ b/packages/utils/.npmignore @@ -9,6 +9,7 @@ yarn.lock tsconfig.tsbuildinfo .eslintrc.cjs tsconfig.json +tsconfig.common.json jest.config.* jest.shared.config.cjs vitest.config.* diff --git a/packages/utils/tests/tsconfig.json b/packages/utils/tests/tsconfig.json index df891b6..396d700 100644 --- a/packages/utils/tests/tsconfig.json +++ b/packages/utils/tests/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "../tsconfig.json", + "extends": "../tsconfig.common.json", "compilerOptions": { "types": ["node", "jest"], - "rootDir": "." + "rootDir": ".", + "outDir": "../tests-compiled" } } diff --git a/packages/utils/tsconfig.common.json b/packages/utils/tsconfig.common.json new file mode 100644 index 0000000..20aa849 --- /dev/null +++ b/packages/utils/tsconfig.common.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2019", + "module": "ESNext", + "strict": true, + "skipLibCheck": true, + "moduleResolution": "node", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "importsNotUsedAsValues": "error", + "resolveJsonModule": true + } +} diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.json index 72d501d..f1829b1 100644 --- a/packages/utils/tsconfig.json +++ b/packages/utils/tsconfig.json @@ -1,17 +1,9 @@ { + "extends": "./tsconfig.common.json", "compilerOptions": { - "rootDir": "./", + "rootDir": "./src", "outDir": "./lib", - "target": "ES2019", - "module": "ESNext", - "lib": ["ESNext", "DOM"], - "strict": true, - "skipLibCheck": true, - "moduleResolution": "node", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "importsNotUsedAsValues": "error", - "resolveJsonModule": true + "lib": ["ESNext", "DOM"] }, "include": ["src/**/*.ts"] }