|
6 | 6 | }, |
7 | 7 | "description": "Create a full Content-Type header given a MIME type or extension and cache the result", |
8 | 8 | "scripts": { |
9 | | - "test": "npm run lint -- --fix && egg-bin test", |
10 | | - "ci": "npm run lint && egg-bin cov && npm run prepublishOnly", |
| 9 | + "clean": "tsc --build --clean", |
| 10 | + "pretest": "npm run clean && npm run lint -- --fix", |
| 11 | + "test": "egg-bin test", |
| 12 | + "preci": "npm run clean && npm run lint", |
| 13 | + "ci": "egg-bin cov", |
| 14 | + "postci": "npm run prepublishOnly && npm run clean", |
11 | 15 | "lint": "eslint src test", |
12 | 16 | "prepublishOnly": "tshy && tshy-after" |
13 | 17 | }, |
14 | 18 | "dependencies": { |
15 | 19 | "mime-types": "^2.1.35", |
16 | | - "ylru": "^1.4.0" |
| 20 | + "ylru": "^2.0.0" |
17 | 21 | }, |
18 | 22 | "devDependencies": { |
19 | | - "@eggjs/tsconfig": "^1.3.3", |
20 | | - "@types/mime-types": "^2.1.4", |
21 | | - "@types/mocha": "^10.0.1", |
22 | | - "@types/node": "^20.2.5", |
23 | | - "egg-bin": "6", |
| 23 | + "@eggjs/tsconfig": "2", |
| 24 | + "@types/mime-types": "2", |
| 25 | + "@types/mocha": "10", |
| 26 | + "@types/node": "^22", |
| 27 | + "@eggjs/bin": "7", |
24 | 28 | "eslint": "8", |
25 | | - "eslint-config-egg": "13", |
26 | | - "mm": "3", |
27 | | - "tshy": "^1.15.1", |
28 | | - "tshy-after": "^1.0.0", |
29 | | - "typescript": "^5.4.5" |
| 29 | + "eslint-config-egg": "14", |
| 30 | + "mm": "4", |
| 31 | + "tshy": "3", |
| 32 | + "tshy-after": "1", |
| 33 | + "typescript": "5" |
30 | 34 | }, |
31 | 35 | "repository": { |
32 | 36 | "type": "git", |
|
50 | 54 | "./package.json": "./package.json", |
51 | 55 | ".": { |
52 | 56 | "import": { |
53 | | - "source": "./src/index.ts", |
54 | 57 | "types": "./dist/esm/index.d.ts", |
55 | 58 | "default": "./dist/esm/index.js" |
56 | 59 | }, |
57 | 60 | "require": { |
58 | | - "source": "./src/index.ts", |
59 | 61 | "types": "./dist/commonjs/index.d.ts", |
60 | 62 | "default": "./dist/commonjs/index.js" |
61 | 63 | } |
|
66 | 68 | "src" |
67 | 69 | ], |
68 | 70 | "main": "./dist/commonjs/index.js", |
69 | | - "types": "./dist/commonjs/index.d.ts" |
| 71 | + "types": "./dist/commonjs/index.d.ts", |
| 72 | + "module": "./dist/esm/index.js" |
70 | 73 | } |
0 commit comments