From 76d31f76c94fac8570aa0f139e2bc660a24bc135 Mon Sep 17 00:00:00 2001 From: Edoardo Cavazza Date: Fri, 9 Feb 2024 17:20:02 +0100 Subject: [PATCH] Update tsconfig config --- package.json | 2 +- test/tsconfig.json | 9 +++++++++ tsconfig.build.json | 4 ---- tsconfig.json | 9 +++------ 4 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 test/tsconfig.json delete mode 100644 tsconfig.build.json diff --git a/package.json b/package.json index eaf0642..a9be601 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "scripts": { "clear": "rimraf 'dist' 'types' 'tsconfig.tsbuildinfo'", "build": "yarn clear && yarn types && node scripts/build.js", - "types": "tsc --project tsconfig.build.json", + "types": "tsc", "lint": "prettier --check . && eslint .", "test:manifest": "custom-elements-manifest analyze --config ./test/cem.config.mjs --outdir test", "test:generate": "./dist/cli.js test --outdir 'test/src/[framework]' -y", diff --git a/test/tsconfig.json b/test/tsconfig.json new file mode 100644 index 0000000..aa41adc --- /dev/null +++ b/test/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "paths": { + "plasma-test": ["./src/index.ts"] + } + }, + "include": ["**/*"] +} diff --git a/tsconfig.build.json b/tsconfig.build.json deleted file mode 100644 index bdc6320..0000000 --- a/tsconfig.build.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["src/**/*"] -} diff --git a/tsconfig.json b/tsconfig.json index 9dd12da..468716a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,15 +6,12 @@ "emitDeclarationOnly": true, "declarationDir": "types", "strict": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, - "experimentalDecorators": true, - "paths": { - "plasma-test": ["./test/src/index.ts"] - } + "experimentalDecorators": true }, - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"] }