-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 1.64 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": "vercel-serverless-api-template",
"version": "1.1.0",
"private": true,
"description": "Vercel Serverless API 模板",
"repository": "https://github.com/arvinxx/vercel-serverless-api-template.git",
"scripts": {
"ci": "npm run lint && npm run type-check",
"lint": "npm run lint:js && npm run lint:prettier",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./api",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx ./api",
"lint:prettier": "prettier --check \"api/**/*\" --end-of-line auto",
"prepare": "husky install",
"prettier": "prettier -c --write \"api/**/*\"",
"release": "semantic-release",
"start": "vercel dev",
"test": "vitest --passWithNoTests",
"test:coverage": "vitest --coverage --passWithNoTests",
"type-check": "tsc --noEmit"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"devDependencies": {
"@umijs/lint": "^4",
"@vercel/node": "^2",
"@vitest/coverage-v8": "latest",
"chalk": "^5",
"commitlint": "^17",
"commitlint-config-gitmoji": "^2",
"cross-env": "^7",
"dotenv": "^8",
"eslint": "^8",
"husky": "^8",
"lint-staged": "^13",
"prettier": "^2",
"prettier-plugin-organize-imports": "^3",
"prettier-plugin-packagejson": "^2",
"semantic-release": "^21",
"semantic-release-config-gitmoji": "^1",
"typescript": "^5",
"vercel": "^31.2.3",
"vitest": "latest"
}
}