|
6 | 6 | "repository": "shellscape/loglevelnext", |
7 | 7 | "author": "Andrew Powell <[email protected]>", |
8 | 8 | "homepage": "https://github.com/shellscape/loglevelnext", |
9 | | - "main": "./dist/index.js", |
10 | 9 | "module": "./dist/index.mjs", |
| 10 | + "type": "module", |
11 | 11 | "exports": { |
12 | 12 | ".": { |
13 | | - "import": { |
14 | | - "types": "./dist/index.d.ts", |
15 | | - "default": "./dist/index.mjs" |
16 | | - }, |
17 | | - "require": { |
18 | | - "types": "./dist/index.d.ts", |
19 | | - "default": "./dist/index.js" |
20 | | - } |
| 13 | + "types": "./dist/index.d.ts", |
| 14 | + "default": "./dist/index.mjs" |
21 | 15 | } |
22 | 16 | }, |
23 | 17 | "engines": { |
24 | | - "node": ">= 18" |
| 18 | + "node": ">= 20.19.0" |
25 | 19 | }, |
26 | 20 | "scripts": { |
27 | | - "build": "tsup src/index.ts --format esm,cjs --dts", |
28 | | - "ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov", |
| 21 | + "build": "tsc --project tsconfig.json --noEmit false", |
| 22 | + "ci:coverage": "vitest run --coverage && vitest coverage report --reporter=lcov", |
29 | 23 | "commitlint": "commitlint", |
30 | 24 | "commitmsg": "commitlint -e $GIT_PARAMS", |
31 | 25 | "lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:package && pnpm lint:js", |
|
34 | 28 | "lint:js": "eslint --fix --cache src test", |
35 | 29 | "lint:json": "prettier --write tsconfig.*.json", |
36 | 30 | "lint:package": "prettier --write **/package.json --plugin=prettier-plugin-package", |
37 | | - "prebuild": "tsc --project tsconfig.json", |
38 | 31 | "prepublishOnly": "pnpm build", |
39 | 32 | "security": "pnpm audit --audit-level high", |
40 | | - "test": "FORCE_COLOR=3 ava" |
| 33 | + "test": "vitest run" |
41 | 34 | }, |
42 | 35 | "files": [ |
43 | 36 | "dist", |
|
61 | 54 | "trace", |
62 | 55 | "warn" |
63 | 56 | ], |
| 57 | + "dependencies": { |
| 58 | + "tsx": "^4.20.3" |
| 59 | + }, |
64 | 60 | "devDependencies": { |
65 | | - "@commitlint/cli": "17.8.0", |
66 | | - "@commitlint/config-conventional": "17.8.0", |
67 | | - "@types/node": "^20.8.6", |
68 | | - "@types/sinon": "^10.0.2", |
69 | | - "ava": "^5.3.1", |
70 | | - "chalk": "^4.0.0", |
| 61 | + "@commitlint/cli": "19.8.1", |
| 62 | + "@commitlint/config-conventional": "19.8.1", |
| 63 | + "@types/node": "^24.1.0", |
| 64 | + "@types/sinon": "^17.0.4", |
| 65 | + "chalk": "^5.4.1", |
71 | 66 | "eslint-config-shellscape": "^6.0.1", |
72 | | - "husky": "^8.0.3", |
73 | | - "lint-staged": "15.0.1", |
74 | | - "nyc": "^15.0.1", |
| 67 | + "husky": "^9.1.7", |
| 68 | + "lint-staged": "16.1.2", |
75 | 69 | "pre-commit": "^1.2.2", |
76 | | - "sinon": "11.1.1", |
77 | | - "ts-node": "^10.0.0", |
78 | | - "tsup": "^7.2.0", |
79 | | - "typescript": "^5.2.2" |
| 70 | + "sinon": "21.0.0", |
| 71 | + "typescript": "^5.2.2", |
| 72 | + "vitest": "^2.1.4" |
80 | 73 | }, |
81 | 74 | "types": "./dist/index.d.ts", |
82 | | - "ava": { |
83 | | - "extensions": [ |
84 | | - "ts" |
85 | | - ], |
86 | | - "require": [ |
87 | | - "ts-node/register" |
88 | | - ], |
89 | | - "files": [ |
90 | | - "test/*.ts" |
91 | | - ] |
92 | | - }, |
93 | 75 | "husky": { |
94 | 76 | "hooks": { |
95 | 77 | "pre-commit": "lint-staged" |
|
0 commit comments