UNPKG

2.57 kBJSONView Raw
1{
2 "name": "signal-exit",
3 "version": "4.1.0",
4 "description": "when you want to fire an event no matter how a process exits.",
5 "main": "./dist/cjs/index.js",
6 "module": "./dist/mjs/index.js",
7 "browser": "./dist/mjs/browser.js",
8 "types": "./dist/mjs/index.d.ts",
9 "exports": {
10 ".": {
11 "import": {
12 "types": "./dist/mjs/index.d.ts",
13 "default": "./dist/mjs/index.js"
14 },
15 "require": {
16 "types": "./dist/cjs/index.d.ts",
17 "default": "./dist/cjs/index.js"
18 }
19 },
20 "./signals": {
21 "import": {
22 "types": "./dist/mjs/signals.d.ts",
23 "default": "./dist/mjs/signals.js"
24 },
25 "require": {
26 "types": "./dist/cjs/signals.d.ts",
27 "default": "./dist/cjs/signals.js"
28 }
29 },
30 "./browser": {
31 "import": {
32 "types": "./dist/mjs/browser.d.ts",
33 "default": "./dist/mjs/browser.js"
34 },
35 "require": {
36 "types": "./dist/cjs/browser.d.ts",
37 "default": "./dist/cjs/browser.js"
38 }
39 }
40 },
41 "files": [
42 "dist"
43 ],
44 "engines": {
45 "node": ">=14"
46 },
47 "repository": {
48 "type": "git",
49 "url": "https://github.com/tapjs/signal-exit.git"
50 },
51 "keywords": [
52 "signal",
53 "exit"
54 ],
55 "author": "Ben Coe <ben@npmjs.com>",
56 "license": "ISC",
57 "devDependencies": {
58 "@types/cross-spawn": "^6.0.2",
59 "@types/node": "^18.15.11",
60 "@types/signal-exit": "^3.0.1",
61 "@types/tap": "^15.0.8",
62 "c8": "^7.13.0",
63 "prettier": "^2.8.6",
64 "tap": "^16.3.4",
65 "ts-node": "^10.9.1",
66 "typedoc": "^0.23.28",
67 "typescript": "^5.0.2"
68 },
69 "scripts": {
70 "preversion": "npm test",
71 "postversion": "npm publish",
72 "prepublishOnly": "git push origin --follow-tags",
73 "preprepare": "rm -rf dist",
74 "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash ./scripts/fixup.sh",
75 "pretest": "npm run prepare",
76 "presnap": "npm run prepare",
77 "test": "c8 tap",
78 "snap": "c8 tap",
79 "format": "prettier --write . --loglevel warn",
80 "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
81 },
82 "prettier": {
83 "semi": false,
84 "printWidth": 75,
85 "tabWidth": 2,
86 "useTabs": false,
87 "singleQuote": true,
88 "jsxSingleQuote": false,
89 "bracketSameLine": true,
90 "arrowParens": "avoid",
91 "endOfLine": "lf"
92 },
93 "tap": {
94 "coverage": false,
95 "jobs": 1,
96 "node-arg": [
97 "--no-warnings",
98 "--loader",
99 "ts-node/esm"
100 ],
101 "ts": false
102 },
103 "funding": {
104 "url": "https://github.com/sponsors/isaacs"
105 }
106}