/
package.json
69 lines (69 loc) · 2.29 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
{
"name": "tshttpcode",
"version": "0.0.11",
"description": "HTTP Status Code enum in TypeScript",
"keywords": [
"http",
"status",
"codes",
"enum",
"typescript",
"tree shaking"
],
"author": "Joon Ho Cho",
"license": "MIT",
"homepage": "https://github.com/joonhocho/tshttpcode#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/joonhocho/tshttpcode.git"
},
"bugs": {
"url": "https://github.com/joonhocho/tshttpcode/issues"
},
"module": "lib/index.js",
"main": "dist/node/index.js",
"browser": "dist/browser/index.js",
"types": "lib/index.d.ts",
"sideEffects": false,
"scripts": {
"all": "npm run clean && npm run format && npm run lint:fix && npm run build:all && npm run test",
"build:all": "npm run build:module && npm run build:node && npm run build:browser",
"build:browser": "tsc -p ./tsconfig.browser.json && tscpaths -p ./tsconfig.browser.json -s ./src -o ./dist/browser",
"build:module": "tsc -p ./tsconfig.module.json && tscpaths -p ./tsconfig.module.json -s ./src -o ./lib",
"build:node": "tsc -p ./tsconfig.node.json && tscpaths -p ./tsconfig.node.json -s ./src -o ./dist/node",
"clean": "rm -rf ./lib ./dist ./coverage",
"format": "prettier --write \"./*.{js,jsx,ts,tsx}\" \"./src/**/*.{js,jsx,ts,tsx}\"",
"lint": "tslint -c ./tslint.json \"src/**/*.ts\"",
"lint:fix": "tslint --fix -c ./tslint.json \"src/**/*.ts\"",
"precommit": "npm run all",
"prepublishOnly": "npm run all",
"reinstall": "rm -rf ./node_modules ./package-lock.json ./yarn.lock && yarn",
"start": "npm run test",
"test": "jest",
"test:coverage": "jest --coverage",
"test:coverage:report": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"test:watch": "jest --watch"
},
"pre-commit": "precommit",
"peerDependencies": {
"tslib": "^1.10.0"
},
"devDependencies": {
"@types/jest": "^24.0.20",
"@types/node": "^12.11.7",
"coveralls": "^3.0.7",
"jest": "^24.9.0",
"pre-commit": "^1.2.2",
"prettier": "^1.18.2",
"ts-jest": "^24.1.0",
"tscpaths": "^0.0.9",
"tsdef": "^0.0.13",
"tslint": "^5.20.0",
"tslint-config-airbnb": "^5.11.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.6.4"
},
"engines": {
"node": ">=8.0.0"
}
}