|
1 | 1 | { |
2 | 2 | "name": "@hapi/formula", |
3 | | - "description": "Math and string formula parser.", |
4 | 3 | "version": "3.0.2", |
5 | | - "repository": "git://github.com/hapijs/formula", |
6 | | - "main": "lib/index.js", |
7 | | - "types": "lib/index.d.ts", |
| 4 | + "description": "Math and string formula parser.", |
8 | 5 | "keywords": [ |
9 | 6 | "formula", |
10 | | - "parser", |
11 | 7 | "math", |
| 8 | + "parser", |
12 | 9 | "string" |
13 | 10 | ], |
| 11 | + "license": "BSD-3-Clause", |
| 12 | + "repository": "git://github.com/hapijs/formula", |
14 | 13 | "files": [ |
15 | | - "lib" |
| 14 | + "src", |
| 15 | + "API.md" |
16 | 16 | ], |
17 | | - "dependencies": {}, |
18 | | - "devDependencies": { |
19 | | - "@hapi/code": "^9.0.3", |
20 | | - "@hapi/lab": "^25.1.2", |
21 | | - "@types/node": "^14.18.36", |
22 | | - "typescript": "4.0.x" |
| 17 | + "type": "module", |
| 18 | + "types": "src/index.d.ts", |
| 19 | + "exports": { |
| 20 | + ".": { |
| 21 | + "types": "./src/index.d.ts", |
| 22 | + "default": "./src/index.js" |
| 23 | + } |
23 | 24 | }, |
24 | 25 | "scripts": { |
25 | | - "test": "lab -a @hapi/code -t 100 -L -Y", |
26 | | - "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html" |
| 26 | + "test": "vitest run --coverage", |
| 27 | + "typecheck": "tsc --noEmit", |
| 28 | + "lint": "oxlint", |
| 29 | + "lint:fix": "oxlint --fix", |
| 30 | + "fmt": "oxfmt --check", |
| 31 | + "fmt:fix": "oxfmt", |
| 32 | + "check": "npm run lint && npm run fmt && npm run typecheck && npm test" |
| 33 | + }, |
| 34 | + "devDependencies": { |
| 35 | + "@hapi/oxc-plugin": "^1.0.1", |
| 36 | + "@vitest/coverage-v8": "^4.1.9", |
| 37 | + "oxfmt": "^0.57.0", |
| 38 | + "oxlint": "^1.72.0", |
| 39 | + "typescript": "^6.0.3", |
| 40 | + "vitest": "^4.1.9" |
27 | 41 | }, |
28 | | - "license": "BSD-3-Clause" |
| 42 | + "engines": { |
| 43 | + "node": ">=22" |
| 44 | + } |
29 | 45 | } |
0 commit comments