-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
54 lines (54 loc) · 1.45 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": "npm-typescript-template",
"version": "1.0.0",
"description": "Template for creating a new npm package using typescript",
"main": "lib/index.js",
"types": "lib/index.d.js",
"scripts": {
"build": "tsc",
"build:pro": "npm run lint-staged && npm run build",
"format": "prettier --write \"src/**/*.{ts,js}\"",
"eslint": "eslint --ext .js,.ts src",
"test": "jest --config jestconfig.json",
"lint-staged": "lint-staged",
"prepare": "npm run build && husky install",
"prepublishOnly": "npm test && npm run eslint",
"preversion": "npm run eslint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags"
},
"files": [
"lib/**/*"
],
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx}": [
"git add"
],
"src/**/*.{js,ts}": [
"eslint --fix"
]
},
"keywords": [],
"author": "@arskang",
"license": "ISC",
"devDependencies": {
"@types/jest": "^27.5.0",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"eslint": "^8.14.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^7.0.4",
"jest": "^28.0.3",
"lint-staged": "^12.4.1",
"prettier": "^2.6.2",
"ts-jest": "^28.0.1",
"typescript": "^4.6.4"
}
}