|
3 | 3 | "version": "1.0.9", |
4 | 4 | "repository": "https://github.com/dmltdev/mongo-error-codes", |
5 | 5 | "description": "A minimal library of MongoDB error codes, names, and helper utilities for error handling, logging, and developer tools.", |
6 | | - "main": "dist/index.js", |
7 | | - "types": "dist/index.d.ts", |
| 6 | + "exports": { |
| 7 | + ".": { |
| 8 | + "types": "./dist/index.d.ts", |
| 9 | + "import": "./dist/index.js" |
| 10 | + } |
| 11 | + }, |
| 12 | + "types": "./dist/index.d.ts", |
| 13 | + "files": [ |
| 14 | + "dist" |
| 15 | + ], |
8 | 16 | "scripts": { |
9 | | - "build": "tsc", |
10 | | - "dev": "tsc -w", |
11 | | - "test": "vitest", |
| 17 | + "build": "rslib build", |
| 18 | + "build:size": "pnpm build && echo \"Raw: $(du -h dist/index.mjs | cut -f1)\" && echo \"Gzipped: $(gzip -c dist/index.mjs | wc -c | numfmt --to=iec)\"", |
| 19 | + "check": "biome check --write", |
| 20 | + "dev": "rslib build --watch", |
| 21 | + "format": "biome format --write", |
| 22 | + "test": "vitest run", |
12 | 23 | "coverage": "vitest run --coverage", |
13 | 24 | "prepublishOnly": "npm run build" |
14 | 25 | }, |
|
23 | 34 | "author": "dmltdev <dmltdev@proton.me>", |
24 | 35 | "license": "MIT", |
25 | 36 | "devDependencies": { |
| 37 | + "@biomejs/biome": "2.2.6", |
| 38 | + "@rslib/core": "0.17.0", |
| 39 | + "@types/node": "22.18.12", |
26 | 40 | "@vitest/browser": "4.0.6", |
27 | 41 | "@vitest/coverage-v8": "4.0.6", |
28 | 42 | "typescript": "5.9.3", |
|
0 commit comments