-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
96 lines (96 loc) · 3.35 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "@fourze/monorepo",
"version": "0.30.2",
"private": true,
"description": "a mock framework",
"author": "Chizuki <[email protected]>",
"license": "MIT",
"keywords": [
"mock",
"web",
"vite",
"hmr"
],
"files": [
"dist/*"
],
"scripts": {
"bench": "pnpm -C bench run bench",
"bench:compare": "pnpm -C bench run compare",
"build": "pnpm -r --filter=./packages/** build",
"stub": "pnpm -r --parallel --filter=./packages/** run stub",
"lint": "eslint ./ -f mo",
"lint:fix": "pnpm lint -- --fix",
"play:vite": "pnpm -r --filter=./playgrounds/vite dev",
"play:vite-mock": "pnpm -r --filter=./playgrounds/vite dev --mode mock",
"play:server": "pnpm -r --filter=./playgrounds/server dev",
"play:nuxt": "pnpm -r --filter=./playgrounds/nuxt-app dev",
"play:nuxt-mock": "pnpm -r --filter=./playgrounds/nuxt-app preview",
"build:vite-mock": "pnpm -r --filter=./playgrounds/vite build --mode mock",
"dev": "vitest",
"test": "vitest",
"coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"bump": "pnpm install && pnpm build && vitest run && bumpp \"package.json\" \"!**/node_modules/**\" \"packages/**/package.json\" --commit --push --tag",
"preinstall": "npx only-allow pnpm",
"prepare": "npx simple-git-hooks",
"regit": "git fetch --all && git reset --hard origin/main && git pull && git remote prune origin",
"up:deps": "taze -r major",
"up:polyfill": "nolyfill install",
"typecheck": "tsc --noEmit --skipLibCheck"
},
"devDependencies": {
"@curev/eslint-config": "^0.3.4",
"@fourze/core": "workspace:*",
"@fourze/mock": "workspace:*",
"@fourze/server": "workspace:*",
"@fourze/swagger": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.13",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"autocannon": "^7.14.0",
"bumpp": "^9.3.0",
"chokidar": "^3.5.3",
"eslint": "^8.56.0",
"eslint-formatter-mo": "^1.2.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.0",
"node-fetch": "^3.3.2",
"nolyfill": "^1.0.28",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
"taze": "^0.13.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vitest": "^1.2.2"
},
"pnpm": {
"overrides": {
"array-includes": "npm:@nolyfill/array-includes@latest",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
"deep-equal": "npm:@nolyfill/deep-equal@latest",
"function-bind": "npm:@nolyfill/function-bind@latest",
"gopd": "npm:@nolyfill/gopd@latest",
"has": "npm:@nolyfill/has@latest",
"has-property-descriptors": "npm:@nolyfill/has-property-descriptors@latest",
"has-proto": "npm:@nolyfill/has-proto@latest",
"has-symbols": "npm:@nolyfill/has-symbols@latest",
"hasown": "npm:@nolyfill/hasown@latest",
"is-generator-function": "npm:@nolyfill/is-generator-function@latest",
"isarray": "npm:@nolyfill/isarray@latest",
"object.values": "npm:@nolyfill/object.values@latest",
"side-channel": "npm:@nolyfill/side-channel@latest"
}
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint -f mo --fix"
]
}
}