504504 },
505505 "scripts" : {
506506 "vscode:prepublish" : " npm run package" ,
507- "compile" : " npm run check-types && npm run lint && node esbuild.js" ,
507+ "compile" : " tsc --noEmit && eslint src && node esbuild.js" ,
508508 "watch" : " npm-run-all -p watch:*" ,
509509 "watch:esbuild" : " node esbuild.js --watch" ,
510510 "watch:tsc" : " tsc --noEmit --watch --project tsconfig.json" ,
511- "package" : " npm run check-types && npm run lint && node esbuild.js --production" ,
512- "compile-tests" : " node -e \" const fs = require('fs'); fs.mkdirSync('out/test', { recursive: true }); fs.cpSync('package.json', 'out/package.json', { force: true }); fs.cpSync('package.json', 'out/test/package.json', { force: true });\" && tsc -p tsconfig.tests.json" ,
511+ "package" : " tsc --noEmit && eslint src && node esbuild.js --production" ,
512+ "prepare-test-output" : " node ../scripts/prepare-test-output.js" ,
513+ "compile-tests" : " node ../scripts/prepare-test-output.js && tsc -p tsconfig.tests.json" ,
513514 "watch-tests" : " tsc -p tsconfig.tests.json -w" ,
514- "pretest" : " npm run compile && npm run compile-tests && npm run lint " ,
515+ "pretest" : " tsc --noEmit && eslint src && node esbuild.js && node ../scripts/prepare-test-output.js && tsc -p tsconfig.tests.json " ,
515516 "check-types" : " tsc --noEmit" ,
516517 "lint" : " eslint src" ,
517518 "lint:css" : " stylelint \" src/webview/**/*.css\" " ,
518519 "lint:json" : " node ../scripts/validate-json.js" ,
519520 "test" : " vscode-test" ,
520- "test:node" : " npm run compile-tests && node --require ./out/test/unit/vscode-shim-register.js --test --test-force-exit out/test/ unit/*.test .js" ,
521- "test:coverage" : " npm run compile- tests && node --require ./out/test/unit/vscode-shim-register.js --experimental-test-coverage --test --test-force-exit --test-coverage-lines=65 --test-coverage-functions=70 --test-coverage-branches=60 --test-coverage-include=out/src/backend/**/*.js --test-coverage-include=out/src/utils/**/*.js --test-coverage-include=out/src/usageAnalysis.js --test-coverage-include=out/src/tokenEstimation.js --test-coverage-include=out/src/maturityScoring.js out/test/unit/*.test.js" ,
521+ "test:node" : " node ../scripts/prepare-test-output.js && tsc -p tsconfig.tests.json && node ../scripts/run-node- unit-tests .js" ,
522+ "test:coverage" : " node ../scripts/prepare-test-output.js && tsc -p tsconfig. tests.json && node --require ./out/test/unit/vscode-shim-register.js --experimental-test-coverage --test --test-force-exit --test-coverage-lines=65 --test-coverage-functions=70 --test-coverage-branches=60 --test-coverage-include=out/src/backend/**/*.js --test-coverage-include=out/src/utils/**/*.js --test-coverage-include=out/src/usageAnalysis.js --test-coverage-include=out/src/tokenEstimation.js --test-coverage-include=out/src/maturityScoring.js out/test/unit/*.test.js" ,
522523 "test:coverage:ci" : " node --require ./out/test/unit/vscode-shim-register.js --experimental-test-coverage --test --test-force-exit --test-coverage-include=out/src/backend/**/*.js --test-coverage-include=out/src/utils/**/*.js --test-coverage-include=out/src/usageAnalysis.js --test-coverage-include=out/src/tokenEstimation.js --test-coverage-include=out/src/maturityScoring.js out/test/unit/*.test.js" ,
523524 "test:mutation" : " npm run compile-tests && npx stryker run" ,
524525 "pre-release" : " node ../scripts/pre-release.js" ,
573574 "diff" : " >=8.0.3" ,
574575 "serialize-javascript" : " >=7.0.3"
575576 }
576- }
577+ }
0 commit comments