-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
81 lines (81 loc) · 2.82 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
{
"name": "cleanup-util",
"version": "1.0.0",
"description": "A utility for cleaning up event handlers in nodejs.",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
"browser": "./dist/browser/index.js",
"types": "dist/cjs/index.d.ts",
"files": [
"dist"
],
"keywords": [
"cleanup",
"events"
],
"author": "[email protected]",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/flitbit/cleanup-util"
},
"scripts": {
"build": "npm run clean && npm run build:node && npm run build:browser",
"build:node": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
"build:browser": "rollup --config",
"clean": "shx rm -rf coverage dist tmp docs reports",
"prebuild": "npm run lint",
"postbuild": "shx cp package-cjs.json dist/cjs/package.json && shx cp package-esm.json dist/esm/package.json",
"buildall": "npm run build && npm run docs",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"noEmit\": false }' jest --detectOpenHandles --coverage",
"pretest:watch": "npm run build",
"test:watch": "onchange --initial \"src/**/*.ts\" -- npm run test",
"cilint": "eslint . --ext .ts,.tsx --format junit --output-file ./reports/eslint/eslint.xml",
"precibuild": "npm run cilint",
"cibuild": "npm run buildall",
"preci": "npm run cibuild",
"ci": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"noEmit\": false }' jest --coverage",
"predocs": "shx rm -fr docs",
"docs": "typedoc src/index.ts",
"docs:watch": "onchange --initial \"*.md\" \"src/**/*.ts\" -- npm run docs"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-inject": "^4.0.3",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-replace": "^3.0.1",
"@rollup/plugin-typescript": "^8.3.0",
"@types/assert-plus": "^1.0.4",
"@types/crc": "^3.4.0",
"@types/debug": "^4.1.5",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.13",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"cross-env": "^7.0.3",
"eslint": "^8.8.0",
"eslint-config-prettier": "~8.3.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.4.7",
"onchange": "^7.1.0",
"prettier": "^2.5.1",
"rollup": "^2.60.1",
"rollup-plugin-terser": "^7.0.2",
"shx": "^0.3.3",
"ts-jest": "^27.1.3",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typedoc": "^0.22.10",
"typescript": "^4.5.5"
},
"dependencies": {
"assert-plus": "^1.0.0",
"debug": "^4.1.1"
}
}