forked from sindresorhus/exit-hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
92 lines (92 loc) · 1.91 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "@scg82/exit-hook",
"version": "3.4.1",
"description": "Execute a callback when the process exits, passing the exit code (ESM/CJS)",
"license": "MIT",
"repository": "https://github.com/SCG82/exit-hook",
"author": "SCG82 <scg082+github@gmail.com>",
"type": "module",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"sideEffects": false,
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"scripts": {
"test": "xo && npm run build && ava && tsd",
"test:ava": "ava",
"test:lint": "xo",
"test:types": "tsd",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p tsconfig.json && npm run rename:esm",
"build:cjs": "tsc -p tsconfig.cjs.json && npm run rename:cjs",
"rename:cjs": "mv dist/cjs/index.js dist/index.cjs && del-cli dist/cjs",
"rename:esm": "mv dist/index.js dist/index.mjs",
"clean": "del-cli dist",
"prepare": "npm run build"
},
"files": [
"dist"
],
"keywords": [
"exit",
"quit",
"process",
"hook",
"graceful",
"handler",
"shutdown",
"sigterm",
"sigint",
"terminate",
"kill",
"stop",
"event",
"signal",
"async",
"asynchronous",
"cjs",
"esm",
"subprocess",
"child",
"child_process",
"exitcode",
"exit-code",
"code",
"interrupt",
"error"
],
"devDependencies": {
"@sindresorhus/tsconfig": "^3.0.1",
"@types/node": "^18.11.11",
"ava": "^5.1.0",
"del-cli": "^5.0.0",
"execa": "^5.1.1",
"ts-node": "^10.9.1",
"tsd": "^0.24.1",
"typescript": "^4.9.4",
"xo": "^0.53.1"
},
"ava": {
"files": ["test/esm.mjs", "test/cjs.cjs"]
},
"xo": {
"parserOptions": {
"project": "tsconfig.xo.json"
}
}
}