-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
54 lines (54 loc) · 1.67 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
{
"name": "throw-utils",
"description": "Helpers for error throwing",
"version": "2.0.0",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"files": [
"src",
"dist",
"README.md"
],
"scripts": {
"prepare": "git config core.hooksPath ./.hooks",
"lint": "eslint src test --ext .ts",
"test": "mocha -n loader=ts-node/esm test/*.ts",
"docs": "node generate-docs.cjs",
"docs:commit": "git add -A README.md && (git diff-index --quiet HEAD -- README.md || git commit -m'docs' --no-verify)",
"build:esm": "rm -rf dist/esm && tsc -p tsconfig.build.json",
"build:cjs": "rm -rf dist/cjs && tsc -p tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"build": "npm run build:esm && npm run build:cjs",
"release": "run-s lint test docs docs:commit && np --yolo --no-release-draft"
},
"lint-staged": {
"{src,test}/**/*.ts": "eslint --ext .ts"
},
"devDependencies": {
"@types/mocha": "^10.0.0",
"@types/node": "^18.8.3",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"eslint": "^8.25.0",
"eslint-plugin-mocha": "^10.1.0",
"lint-staged": "^13.0.3",
"markdown-magic": "^2.6.1",
"mocha": "^10.1.0",
"np": "^7.6.2",
"npm-run-all": "^4.1.3",
"ts-node": "^10.9.1",
"tsdoc-markdown": "^0.0.1",
"typedoc": "^0.23.17",
"typedoc-plugin-markdown": "^3.13.6",
"typescript": "^4.8.4"
},
"author": {
"name": "Vitaliy Potapov",
"email": "noginsk@rambler.ru"
},
"repository": {
"type": "git",
"url": "git://github.com/vitalets/throw-utils.git"
},
"license": "MIT"
}