-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 2.58 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
{
"name": "typescript-module-template",
"version": "1.0.0",
"description": "typescript module template",
"repository": "https://github.com/shotor/typescript-module-template.git",
"author": "shotor",
"license": "MIT",
"private": false,
"main": "dist/index.js",
"bin": {
"app": "./dist/index.js"
},
"scripts": {
"---- RUN ----": "----------------------------------------------------",
"dev": "ts-node ./src/index.ts",
"start": "yarn build && yarn start:dist",
"start:prod": "yarn build:prod && yarn start:dist",
"start:dist": "node dist/index.js",
"--- BUILD ---": "----------------------------------------------------",
"build": "yarn rm:dist && yarn tsc",
"build:prod": "cross-env NODE_ENV=production yarn tsc",
"build:watch": "yarn tsc --watch",
"tsc": "tsc -p ./tsconfig.build.json",
"---- TEST ---": "----------------------------------------------------",
"test": "jest --env=node --colors --coverage",
"test:watch": "jest --env=node --colors --coverage --watch",
"test:build": "yarn build && yarn test",
"---- LINT ---": "----------------------------------------------------",
"lint": "yarn eslint --ext .ts,.tsx ./src",
"lint:fix": "yarn eslint --ext --fix .ts,.tsx ./src",
"prettier:fix": "prettier --write \"{,!(node_modules|dist|build|coverage)/**/}*.{js,jsx,ts,tsx,json}\"",
"prettier:staged": "pretty-quick --staged",
"--- UTILS ---": "----------------------------------------------------",
"rm:dist": "rimraf ./dist",
"commit": "git-cz",
"---- NPM ----": "----------------------------------------------------",
"prepare": "husky install"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn check:build"
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"eslint --fix",
"pretty-quick --write"
]
},
"dependencies": {},
"devDependencies": {
"@types/jest": "27.4.1",
"@types/node": "17.0.23",
"@typescript-eslint/eslint-plugin": "5.17.0",
"@typescript-eslint/parser": "5.17.0",
"commitizen": "4.2.4",
"cross-env": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.12.0",
"eslint-config-prettier": "8.5.0",
"husky": "7.0.4",
"jest": "27.5.1",
"lint-staged": "12.3.7",
"prettier": "2.6.2",
"pretty-quick": "3.1.3",
"rimraf": "3.0.2",
"ts-jest": "27.1.4",
"ts-node": "10.7.0",
"typescript": "4.6.3"
}
}