-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 2.38 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": "rollup-ts-lib-starter",
"version": "1.0.0",
"description": "This is an opinionated starter kit to start making an Library",
"main": "dist/main.js",
"module": "dist/main.esm.js",
"types": "dist/types/index.d.ts",
"scripts": {
"dev": "yarn clean && rollup -c --watch --environment NODE_ENV:development",
"build:dev": "yarn check-types && yarn clean && yarn build:types && rollup -c --environment NODE_ENV:production",
"build:prod": "yarn check-types && yarn clean && yarn build:types && rollup -c --environment NODE_ENV:production",
"build:types": "tsc --emitDeclarationOnly",
"analyze": "yarn clean && yarn build:types && rollup -c --environment NODE_ENV:production --environment REPORT:true",
"clean": "rimraf dist",
"check-types": "tsc --noemit",
"prettier": "prettier --write \"lib/**/*.ts\"",
"lint": "eslint ./lib --fix"
},
"keywords": [
"rollup",
"typescript",
"ts",
"lib",
"start"
],
"author": "xl",
"license": "ISC",
"private": false,
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"lib/**/*.{ts,tsx}": [
"yarn check-types",
"yarn prettier",
"yarn lint",
"git add ."
]
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-eslint": "^8.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "4.2.5",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"rollup": "^2.56.1",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^5.5.2",
"tslib": "^2.3.0",
"typescript": "^4.3.5"
},
"dependencies": {
"@babel/runtime-corejs2": "^7.14.8"
},
"files": [
"lib",
"types",
"dist"
]
}