|
19 | 19 | "test:lint": "eslint src --ext .ts", |
20 | 20 | "test:prettier": "prettier \"src/**/*.ts\" --list-different", |
21 | 21 | "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", |
22 | | - "test:unit": "nyc --silent ava", |
| 22 | + "test:unit": "cross-env CI=true vitest", |
23 | 23 | "check-cli": "run-s test diff-integration-tests check-integration-tests", |
24 | 24 | "check-integration-tests": "run-s check-integration-test:*", |
25 | 25 | "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'", |
26 | 26 | "watch:build": "tsc -p tsconfig.json -w", |
27 | | - "watch:test": "nyc --silent ava --watch", |
28 | | - "cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html", |
29 | | - "cov:html": "nyc report --reporter=html", |
30 | | - "cov:lcov": "nyc report --reporter=lcov", |
31 | | - "cov:send": "run-s cov:lcov && codecov", |
32 | | - "cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100", |
| 27 | + "watch:test": "vitest --watch", |
| 28 | + "test:ui": "run-s test:watch -- --ui", |
| 29 | + "test:coverage": "run-s test:unit -- run --coverage", |
33 | 30 | "doc": "run-s doc:html && open-cli build/docs/index.html", |
34 | 31 | "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs", |
35 | 32 | "doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json", |
|
39 | 36 | "prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish" |
40 | 37 | }, |
41 | 38 | "engines": { |
42 | | - "node": ">=10" |
43 | | - }, |
44 | | - "dependencies": { |
45 | | - "@bitauth/libauth": "^1.17.1" |
| 39 | + "node": ">=14" |
46 | 40 | }, |
47 | 41 | "devDependencies": { |
48 | | - "@ava/typescript": "^1.1.1", |
49 | | - "@istanbuljs/nyc-config-typescript": "^1.0.1", |
50 | | - "@typescript-eslint/eslint-plugin": "^4.0.1", |
51 | | - "@typescript-eslint/parser": "^4.0.1", |
52 | | - "ava": "^3.12.1", |
53 | | - "codecov": "^3.5.0", |
54 | | - "cspell": "^4.1.0", |
| 42 | + "@typescript-eslint/eslint-plugin": "^7.16.1", |
| 43 | + "@typescript-eslint/parser": "^7.16.1", |
| 44 | + "@vitest/coverage-istanbul": "^2.0.3", |
| 45 | + "@vitest/ui": "^2.0.3", |
| 46 | + "cross-env": "^7.0.3", |
| 47 | + "cspell": "^8.11.0", |
55 | 48 | "cz-conventional-changelog": "^3.3.0", |
56 | | - "eslint": "^7.8.0", |
57 | | - "eslint-config-prettier": "^6.11.0", |
| 49 | + "eslint": "^9.7.0", |
| 50 | + "eslint-config-prettier": "^9.1.0", |
58 | 51 | "eslint-plugin-eslint-comments": "^3.2.0", |
59 | | - "eslint-plugin-functional": "^3.0.2", |
60 | | - "eslint-plugin-import": "^2.22.0", |
61 | | - "gh-pages": "^3.1.0", |
| 52 | + "eslint-plugin-functional": "^6.6.3", |
| 53 | + "eslint-plugin-import": "^2.29.1", |
| 54 | + "gh-pages": "^6.1.1", |
62 | 55 | "npm-run-all": "^4.1.5", |
63 | | - "nyc": "^15.1.0", |
64 | | - "open-cli": "^6.0.1", |
65 | | - "prettier": "^2.1.1", |
66 | | - "standard-version": "^9.0.0", |
67 | | - "ts-node": "^9.0.0", |
68 | | - "typedoc": "^0.19.0", |
69 | | - "typescript": "^4.0.2" |
| 56 | + "open-cli": "^8.0.0", |
| 57 | + "prettier": "^3.3.3", |
| 58 | + "standard-version": "^9.5.0", |
| 59 | + "ts-node": "^10.9.2", |
| 60 | + "typedoc": "^0.26.4", |
| 61 | + "typescript": "^5.5.3", |
| 62 | + "vitest": "^2.0.3" |
70 | 63 | }, |
71 | 64 | "files": [ |
72 | 65 | "build/main", |
|
76 | 69 | "CHANGELOG.md", |
77 | 70 | "LICENSE", |
78 | 71 | "README.md" |
79 | | - ], |
80 | | - "ava": { |
81 | | - "failFast": true, |
82 | | - "timeout": "60s", |
83 | | - "typescript": { |
84 | | - "rewritePaths": { |
85 | | - "src/": "build/main/" |
86 | | - } |
87 | | - }, |
88 | | - "files": [ |
89 | | - "!build/module/**" |
90 | | - ] |
91 | | - }, |
92 | | - "config": { |
93 | | - "commitizen": { |
94 | | - "path": "cz-conventional-changelog" |
95 | | - } |
96 | | - }, |
97 | | - "prettier": { |
98 | | - "singleQuote": true |
99 | | - }, |
100 | | - "nyc": { |
101 | | - "extends": "@istanbuljs/nyc-config-typescript", |
102 | | - "exclude": [ |
103 | | - "**/*.spec.js" |
104 | | - ] |
105 | | - } |
| 72 | + ] |
106 | 73 | } |
0 commit comments