Skip to content

Commit 7f59e45

Browse files
committed
chore: clean out/ before every test run to prevent stale builds
Both pretest scripts now rm -rf out/ before compiling. Also removes redundant double-compile and double-lint from root pretest.
1 parent eaec7bc commit 7f59e45

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
"package": "npm run check-types && npm run lint && node esbuild.js --production",
297297
"compile-tests": "tsc -p . --outDir out",
298298
"watch-tests": "tsc -p . -w --outDir out",
299-
"pretest": "npm run compile-tests && npm run compile && npm run lint",
299+
"clean": "rm -rf out",
300+
"pretest": "npm run clean && npm run compile-tests && npm run lint",
300301
"check-types": "tsc --noEmit",
301302
"lint": "eslint \"src/**/*.ts\"",
302303
"test": "vscode-test",

tests/comparison/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"scripts": {
1111
"compile-tests": "tsc -p . --outDir out --noEmitOnError false 2>&1 | grep -v 'old-typescript-hero/src/ioc.ts' || true",
1212
"watch-tests": "tsc -p . -w --outDir out",
13-
"pretest": "npm run compile-tests",
13+
"clean": "rm -rf out",
14+
"pretest": "npm run clean && npm run compile-tests",
1415
"test": "vscode-test"
1516
},
1617
"devDependencies": {

0 commit comments

Comments
 (0)