|
8 | 8 | "main": "./lib/prefRating.js", |
9 | 9 | "types": "./lib/prefRating.d.ts", |
10 | 10 | "scripts": { |
11 | | - "all": "yarn & tsc & yarn clean & yarn build & yarn test & yarn docs", |
| 11 | + "all": "pnpm install & tsc & pnpm lint:fix & pnpm build & pnpm test & pnpm docs", |
12 | 12 | "build": "del /S /Q lib\\* && tsc", |
13 | 13 | "build:watch": "tsc --watch", |
14 | | - "lint": "tslint -p tsconfig.json", |
15 | | - "clean": "tslint --config tslint-imports.json --fix --project .", |
16 | | - "format": "prettier --write \"src/**/*.ts\"", |
| 14 | + "lint": "eslint src/**/*.ts test/**/*.ts", |
| 15 | + "lint:fix": "eslint src/**/*.ts test/**/*.ts --fix", |
| 16 | + "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", |
17 | 17 | "docs": "typedoc --readme none --out docs src", |
18 | | - "test": "nyc mocha -r ts-node/register/transpile-only test/**/*.spec.ts", |
| 18 | + "test": "jest", |
| 19 | + "test:watch": "jest --watch", |
| 20 | + "test:coverage": "jest --coverage", |
19 | 21 | "coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls", |
20 | 22 | "sonar": "sonarjs -e .sonarlint/**,node_modules/**,coverage/**,.nyc_output/**", |
21 | | - "up": "yarn upgrade-interactive", |
22 | | - "latest": "yarn upgrade-interactive --latest" |
| 23 | + "fix": "pnpm i & pnpm dedupe & pnpm audit --fix & pnpm skeletest -f & pnpm strictr -f & pnpm format & git add test", |
| 24 | + "up": "pnpm up -i", |
| 25 | + "latest": "pnpm up -i -L", |
| 26 | + "l": "pnpm i & pnpm latest" |
23 | 27 | }, |
24 | 28 | "files": [ |
25 | 29 | "lib/**/*" |
26 | 30 | ], |
27 | | - "nyc": { |
28 | | - "include": [ |
29 | | - "src/**/*.ts" |
| 31 | + "jest": { |
| 32 | + "preset": "ts-jest", |
| 33 | + "testEnvironment": "node", |
| 34 | + "roots": ["<rootDir>/src", "<rootDir>/test"], |
| 35 | + "testMatch": ["**/*.spec.ts", "**/*.test.ts"], |
| 36 | + "collectCoverageFrom": [ |
| 37 | + "src/**/*.ts", |
| 38 | + "!src/**/*.d.ts" |
30 | 39 | ], |
31 | | - "exclude": [ |
32 | | - "test/**/*.ts" |
33 | | - ], |
34 | | - "extension": [ |
35 | | - ".ts" |
36 | | - ], |
37 | | - "require": [ |
38 | | - "ts-node/register/transpile-only" |
39 | | - ], |
40 | | - "reporter": [ |
41 | | - "text-summary", |
42 | | - "html" |
43 | | - ], |
44 | | - "sourceMap": true, |
45 | | - "instrument": true |
| 40 | + "coverageDirectory": "coverage", |
| 41 | + "coverageReporters": ["text-summary", "html", "lcov"] |
46 | 42 | }, |
47 | 43 | "repository": { |
48 | 44 | "type": "git", |
|
63 | 59 | "@types/lodash": "^4.14.181", |
64 | 60 | "@types/mathjs": "^9.4.2", |
65 | 61 | "lodash": "^4.17.15", |
66 | | - "mathjs": "^10.4.3" |
| 62 | + "mathjs": "^14.6.0" |
67 | 63 | }, |
68 | 64 | "devDependencies": { |
69 | | - "@types/chai": "^4.3.0", |
70 | | - "@types/mocha": "^9.1.0", |
71 | | - "chai": "^4.3.6", |
| 65 | + "@eslint/js": "^9.32.0", |
| 66 | + "@types/jest": "^30.0.0", |
| 67 | + "@typescript-eslint/eslint-plugin": "^8.38.0", |
| 68 | + "@typescript-eslint/parser": "^8.38.0", |
72 | 69 | "coveralls": "^3.1.1", |
73 | | - "mocha": "^9.2.2", |
74 | | - "nyc": "^15.1.0", |
75 | | - "prettier": "^2.6.2", |
| 70 | + "eslint": "^9.32.0", |
| 71 | + "eslint-config-prettier": "^10.1.8", |
| 72 | + "eslint-plugin-prettier": "^5.5.3", |
| 73 | + "jest": "^30.0.5", |
| 74 | + "prettier": "^3.6.2", |
76 | 75 | "sonarjs": "^1.0.0", |
77 | 76 | "source-map-support": "^0.5.21", |
| 77 | + "ts-jest": "^29.4.0", |
78 | 78 | "ts-node": "^10.7.0", |
79 | | - "tslint": "^6.1.3", |
80 | | - "tslint-config-prettier": "^1.18.0", |
81 | | - "tslint-etc": "^1.13.10", |
82 | | - "tslint-no-unused-expression-chai": "^0.1.4", |
83 | | - "typedoc": "^0.22.14", |
84 | | - "typescript": "^4.6.3" |
85 | | - } |
| 79 | + "typedoc": "^0.28.9", |
| 80 | + "typescript": "^5.9.2" |
| 81 | + }, |
| 82 | + "packageManager": "pnpm@10.14.0" |
86 | 83 | } |
0 commit comments