|
504 | 504 | }, |
505 | 505 | "scripts": { |
506 | 506 | "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", |
508 | 508 | "watch": "npm-run-all -p watch:*", |
509 | 509 | "watch:esbuild": "node esbuild.js --watch", |
510 | 510 | "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", |
513 | 514 | "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", |
515 | 516 | "check-types": "tsc --noEmit", |
516 | 517 | "lint": "eslint src", |
517 | 518 | "lint:css": "stylelint \"src/webview/**/*.css\"", |
518 | 519 | "lint:json": "node ../scripts/validate-json.js", |
519 | 520 | "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", |
522 | 523 | "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", |
523 | 524 | "test:mutation": "npm run compile-tests && npx stryker run", |
524 | 525 | "pre-release": "node ../scripts/pre-release.js", |
|
0 commit comments