diff --git a/package.json b/package.json index f6f62a3d6..1e982fd6e 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "type": "module", "scripts": { "build": "npm run cleanup && tsc -p tsconfig.build.json", - "build-test": "npm run cleanup && tsc -p .", + "build-test": "tsc --noEmit -p .", "build-watch": "npm run cleanup && tsc -w -p tsconfig.build.json", "check-licenses": "licensee --errors-only", "cleanup": "rimraf lib coverage", diff --git a/tsconfig.json b/tsconfig.json index d4660870c..f7cec8a55 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,8 @@ // This is our configuration for development and linting, // compared to "tsconfig.build.json" it also includes tests // and other TypeScript sources in the project + // For this reason however, it should not be used to emit JavaScript (except for linting purposes), + // since the output directory would then contain "src" and "test" directories instead of just the content of "src" "extends": "./tsconfig.base.json", "include": [ "src/**/*",