diff --git a/tsconfig.build.json b/tsconfig.build.json index cf5838b..21ea4ab 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,10 +1,11 @@ { - "extends": "./tsconfig.json", - "exclude": ["dist", "coverage", "examples", "jest.config.ts", "node_modules", "test"], "compilerOptions": { "declaration": true, "importHelpers": true, "outDir": "dist", - "sourceMap": true - } + "sourceMap": true, + "target": "ES2021" + }, + "exclude": ["dist", "coverage", "examples", "jest.config.ts", "node_modules", "test"], + "extends": "./tsconfig.json" } diff --git a/tsconfig.json b/tsconfig.json index d65eabe..1aad22a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,4 @@ { - "exclude": ["dist", "coverage"], "compilerOptions": { "allowUnreachableCode": false, "allowUnusedLabels": false, @@ -11,8 +10,8 @@ "forceConsistentCasingInFileNames": true, "isolatedModules": true, "lib": ["es2023"], - "module": "es2022", - "moduleResolution": "Node", + "module": "node16", + "moduleResolution": "node16", "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noImplicitReturns": true, @@ -23,5 +22,6 @@ "skipLibCheck": true, "strict": true, "target": "es2022" - } + }, + "exclude": ["dist", "coverage"] }