mirror of
https://github.com/kucherenko/jscpd.git
synced 2026-09-19 08:11:03 +08:00
64e471e2b0
Adds 92 new tests (178 → 270 total) with zero source-file modifications: - packages/finder: 13 new test files covering all reporters, subscribers, validators, hooks, utils, options, cloneFound, getFilesToDetect, and InFilesDetector; shared buildClone() factory helper - apps/jscpd: 3 new test files (options-unit, print, store) plus extensions to formats, modes, and options integration tests - vitest.config.ts added to both packages to restrict coverage.include to src/** only, eliminating bin/ and prism.js noise - Fixes 3 tokenizer bugs (trailing space in format lookup, tokenization edge cases) uncovered by the new format fixture suite - Adds fixture files for 40+ language formats to support formats.test.ts
44 lines
1.0 KiB
JSON
44 lines
1.0 KiB
JSON
{
|
|
"name": "worker-service",
|
|
"version": "2.0.0",
|
|
"description": "Background worker service for async job processing",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc --project tsconfig.json",
|
|
"start": "node dist/index.js",
|
|
"dev": "ts-node src/index.ts",
|
|
"test": "jest --coverage --runInBand",
|
|
"lint": "eslint src --ext .ts",
|
|
"format": "prettier --write src/**/*.ts"
|
|
},
|
|
"dependencies": {
|
|
"express": "^4.18.2",
|
|
"cors": "^2.8.5",
|
|
"helmet": "^7.0.0",
|
|
"morgan": "^1.10.0",
|
|
"dotenv": "^16.3.1",
|
|
"winston": "^3.10.0",
|
|
"joi": "^17.9.2",
|
|
"bull": "^4.11.3",
|
|
"pg": "^8.11.3",
|
|
"redis": "^4.6.8"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.2.2",
|
|
"@types/express": "^4.17.18",
|
|
"@types/node": "^20.6.0",
|
|
"@types/cors": "^2.8.14",
|
|
"@types/morgan": "^1.9.5",
|
|
"@types/pg": "^8.10.3",
|
|
"jest": "^29.6.4",
|
|
"ts-jest": "^29.1.1",
|
|
"@types/jest": "^29.5.5",
|
|
"eslint": "^8.49.0",
|
|
"prettier": "^3.0.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0",
|
|
"npm": ">=9.0.0"
|
|
}
|
|
}
|