-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
52 lines (52 loc) · 1.52 KB
/
package.json
File metadata and controls
52 lines (52 loc) · 1.52 KB
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
{
"name": "fc-domain",
"main": "./dist/index.js",
"version": "0.0.13",
"autoInstall": false,
"dependencies": {
"@alicloud/fc2": "^2.2.2",
"@serverless-devs/core": "latest",
"promise-retry": "^2.0.1"
},
"devDependencies": {
"@types/eslint": "^7.2.6",
"@types/jest": "^26.0.10",
"@types/node": "14",
"@vercel/ncc": "^0.24.0",
"esbuild": "^0.14.3",
"f2elint": "^0.4.4",
"jest": "^26.4.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.2.0",
"ts-loader": "^8.0.14",
"ts-node": "^9.1.1",
"@types/prettier": "2.6.0",
"typescript": "^3.9.7"
},
"scripts": {
"preln": "rm -rf ~/.s/components/devsapp.cn/fc-domain/dist",
"ln": "ln -s $(pwd)/dist ~/.s/components/devsapp.cn/fc-domain/dist",
"start": "npx tsc -w -p tsconfig.json",
"prebuild": "rm -rf node_modules && npm i && rimraf dist",
"build": "npm run fix && npm run esbuild",
"esbuild": "esbuild src/index.ts --bundle --log-level=error --minify --platform=node --format=cjs --target=node10.4 --external:@serverless-devs/core --outfile=dist/index.js",
"test": "jest",
"test:cov": "jest --coverage",
"lint": "f2elint scan",
"fix": "f2elint fix",
"typecheck": "npx tsc -p tsconfig.json --noEmit"
},
"husky": {
"hooks": {
"commit-msg": "f2elint exec commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "f2elint exec lint-staged"
}
},
"lint-staged": {
"**/*.{js,jsx,ts}": "f2elint exec eslint"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
}
}