|
2 | 2 | "name": "graceful-process", |
3 | 3 | "version": "1.2.0", |
4 | 4 | "description": "graceful exit process even parent exit on SIGKILL.", |
5 | | - "files": [ |
6 | | - "index.js", |
7 | | - "exit.js" |
8 | | - ], |
9 | | - "scripts": { |
10 | | - "lint": "eslint *.js test", |
11 | | - "test": "npm run lint && npm run test-local", |
12 | | - "test-local": "egg-bin test", |
13 | | - "cov": "cross-env COV=true egg-bin cov", |
14 | | - "ci": "npm run lint && npm run cov" |
15 | | - }, |
16 | 5 | "repository": { |
17 | 6 | "type": "git", |
18 | 7 | "url": "[email protected]:node-modules/graceful-process.git" |
|
22 | 11 | }, |
23 | 12 | "author": "fengmk2", |
24 | 13 | "license": "MIT", |
25 | | - "dependencies": { |
26 | | - "once": "^1.4.0", |
27 | | - "promise-timeout": "^1.3.0" |
| 14 | + "engines": { |
| 15 | + "node": ">= 18.19.0" |
28 | 16 | }, |
| 17 | + "dependencies": {}, |
29 | 18 | "devDependencies": { |
30 | | - "coffee": "^4.1.0", |
31 | | - "cross-env": "^5.0.1", |
32 | | - "egg-bin": "^6.13.0", |
33 | | - "eslint": "^4.18.1", |
34 | | - "eslint-config-egg": "^7.0.0", |
| 19 | + "@arethetypeswrong/cli": "^0.17.1", |
| 20 | + "@eggjs/tsconfig": "1", |
| 21 | + "@types/mocha": "10", |
| 22 | + "@types/node": "22", |
| 23 | + "coffee": "^5.5.1", |
| 24 | + "egg-bin": "6", |
| 25 | + "eslint": "8", |
| 26 | + "eslint-config-egg": "14", |
35 | 27 | "fkill": "^7.2.1", |
36 | | - "mm": "^2.2.0", |
37 | | - "mz-modules": "^2.1.0", |
38 | | - "urllib": "^2.26.0" |
39 | | - } |
| 28 | + "mm": "^3.4.0", |
| 29 | + "tshy": "3", |
| 30 | + "tshy-after": "1", |
| 31 | + "typescript": "5", |
| 32 | + "urllib": "^4.6.8" |
| 33 | + }, |
| 34 | + "scripts": { |
| 35 | + "lint": "eslint --cache src test --ext .ts", |
| 36 | + "pretest": "npm run lint -- --fix && npm run prepublishOnly", |
| 37 | + "test": "egg-bin test", |
| 38 | + "preci": "npm run lint && npm run prepublishOnly", |
| 39 | + "ci": "egg-bin cov && attw --pack", |
| 40 | + "prepublishOnly": "tshy && tshy-after" |
| 41 | + }, |
| 42 | + "type": "module", |
| 43 | + "tshy": { |
| 44 | + "exports": { |
| 45 | + ".": "./src/index.ts", |
| 46 | + "./package.json": "./package.json" |
| 47 | + } |
| 48 | + }, |
| 49 | + "exports": { |
| 50 | + ".": { |
| 51 | + "import": { |
| 52 | + "types": "./dist/esm/index.d.ts", |
| 53 | + "default": "./dist/esm/index.js" |
| 54 | + }, |
| 55 | + "require": { |
| 56 | + "types": "./dist/commonjs/index.d.ts", |
| 57 | + "default": "./dist/commonjs/index.js" |
| 58 | + } |
| 59 | + }, |
| 60 | + "./package.json": "./package.json" |
| 61 | + }, |
| 62 | + "files": [ |
| 63 | + "dist", |
| 64 | + "src" |
| 65 | + ], |
| 66 | + "types": "./dist/commonjs/index.d.ts", |
| 67 | + "main": "./dist/commonjs/index.js", |
| 68 | + "module": "./dist/esm/index.js" |
40 | 69 | } |
0 commit comments