diff --git a/scripts/build.js b/scripts/build.js index dfe4339d5..fb8967592 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -34,7 +34,7 @@ fs.mkdirSync(outdir, { recursive: true }); execSync(`node scripts/make-icons.js --outdir "${outdir}"`, { stdio: 'inherit' }); if (types) { console.log('Running the TypeScript compiler...'); - execSync(`tsc --project ./tsconfig.prod.json --outdir "${outdir}"`, { stdio: 'inherit' }); + execSync(`tsc --project ./tsconfig.json --outdir "${outdir}"`, { stdio: 'inherit' }); } } catch (err) { console.error(chalk.red(err)); diff --git a/tsconfig.json b/tsconfig.json index 7cc81f871..a0a38c9ea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,9 @@ "dom.Iterable", "es2020" ], + "baseUrl": ".", + "rootDir": "./src", "declaration": true, - "rootDir": ".", "strict": true, "strictPropertyInitialization": false, "strictFunctionTypes": false, @@ -25,10 +26,8 @@ "removeComments": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "useUnknownInCatchVariables": true, - "baseUrl": "." + "useUnknownInCatchVariables": true }, - "include": [ - "src" - ] + "include": ["src"], + "exclude": ["src/**/*.test.ts"] } diff --git a/tsconfig.prod.json b/tsconfig.prod.json deleted file mode 100644 index 1cdbd2138..000000000 --- a/tsconfig.prod.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig", - "compilerOptions": { - "baseUrl": ".", - "rootDir": "./src" - }, - "include": ["src"], - "exclude": ["src/**/*.test.ts"] -}