|
1 | 1 | { |
2 | 2 | "name": "@eggjs/utils", |
3 | 3 | "version": "3.0.1", |
| 4 | + "engine": { |
| 5 | + "node": ">=18.19.0" |
| 6 | + }, |
| 7 | + "publishConfig": { |
| 8 | + "access": "public" |
| 9 | + }, |
4 | 10 | "description": "Utils for all egg projects", |
5 | | - "main": "lib/index.js", |
6 | | - "types": "lib/index.d.ts", |
7 | | - "files": [ |
8 | | - "lib" |
9 | | - ], |
10 | 11 | "scripts": { |
11 | | - "lint": "eslint .", |
12 | | - "pretest": "npm run lint && npm run tsc", |
13 | | - "test": "egg-bin test", |
14 | | - "preci": "npm run lint && npm run tsc", |
15 | | - "ci": "egg-bin cov", |
16 | | - "tsc": "tsc", |
17 | | - "clean": "tsc --build --clean", |
18 | | - "prepublishOnly": "npm run clean && npm run tsc", |
19 | | - "contributor": "git-contributor" |
| 12 | + "lint": "eslint src test --ext ts", |
| 13 | + "pretest": "npm run prepublishOnly", |
| 14 | + "test": "npm run lint -- --fix && npm run test-local", |
| 15 | + "test-local": "egg-bin test", |
| 16 | + "preci": "npm run prepublishOnly", |
| 17 | + "ci": "npm run lint && egg-bin cov && npm run prepublishOnly", |
| 18 | + "contributor": "git-contributor", |
| 19 | + "prepublishOnly": "tshy && tshy-after" |
20 | 20 | }, |
21 | 21 | "keywords": [ |
22 | 22 | "egg", |
|
25 | 25 | "author": "fengmk2 <[email protected]> (https://github.com/fengmk2)", |
26 | 26 | "repository": { |
27 | 27 | "type": "git", |
28 | | - "url": "https://github.com/eggjs/egg-utils.git" |
| 28 | + "url": "git://github.com/eggjs/egg-utils.git" |
29 | 29 | }, |
30 | 30 | "license": "MIT", |
31 | 31 | "dependencies": {}, |
32 | 32 | "devDependencies": { |
33 | | - "@eggjs/tsconfig": "^1.3.3", |
34 | | - "@types/mocha": "^10.0.1", |
35 | | - "@types/node": "^20.2.5", |
36 | | - "coffee": "^5.5.0", |
37 | | - "egg-bin": "^6.4.0", |
38 | | - "eslint": "^8.41.0", |
39 | | - "eslint-config-egg": "^12.2.1", |
40 | | - "git-contributor": "^2.1.5", |
41 | | - "mm": "^3.3.0", |
42 | | - "npm": "^9.6.7", |
43 | | - "npminstall": "^7.9.0", |
44 | | - "runscript": "^1.5.3", |
45 | | - "typescript": "^5.0.4" |
| 33 | + "@eggjs/tsconfig": "1", |
| 34 | + "@types/mocha": "10", |
| 35 | + "@types/node": "20", |
| 36 | + "coffee": "5", |
| 37 | + "egg-bin": "6", |
| 38 | + "eslint": "8", |
| 39 | + "eslint-config-egg": "13", |
| 40 | + "git-contributor": "2", |
| 41 | + "mm": "3", |
| 42 | + "npminstall": "7", |
| 43 | + "runscript": "1", |
| 44 | + "tshy": "1", |
| 45 | + "tshy-after": "1", |
| 46 | + "typescript": "5" |
46 | 47 | }, |
47 | | - "engine": { |
48 | | - "node": ">=16.13.0" |
| 48 | + "files": [ |
| 49 | + "dist", |
| 50 | + "src" |
| 51 | + ], |
| 52 | + "type": "module", |
| 53 | + "tshy": { |
| 54 | + "exports": { |
| 55 | + "./package.json": "./package.json", |
| 56 | + ".": "./src/index.ts" |
| 57 | + } |
49 | 58 | }, |
50 | | - "publishConfig": { |
51 | | - "access": "public" |
52 | | - } |
| 59 | + "exports": { |
| 60 | + "./package.json": "./package.json", |
| 61 | + ".": { |
| 62 | + "import": { |
| 63 | + "source": "./src/index.ts", |
| 64 | + "types": "./dist/esm/index.d.ts", |
| 65 | + "default": "./dist/esm/index.js" |
| 66 | + }, |
| 67 | + "require": { |
| 68 | + "source": "./src/index.ts", |
| 69 | + "types": "./dist/commonjs/index.d.ts", |
| 70 | + "default": "./dist/commonjs/index.js" |
| 71 | + } |
| 72 | + } |
| 73 | + }, |
| 74 | + "main": "./dist/commonjs/index.js", |
| 75 | + "types": "./dist/commonjs/index.d.ts" |
53 | 76 | } |
0 commit comments