-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
61 lines (61 loc) · 1.52 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
{
"name": "next-api-route",
"version": "0.2.1",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"typings": "dist/index.d.ts",
"repository": "https://github.com/pajecawav/next-api-route.git",
"bugs": "https://github.com/pajecawav/next-api-route/issues",
"homepage": "https://github.com/pajecawav/next-api-route#readme",
"files": [
"dist/*.js",
"dist/*.js.map",
"dist/*.d.ts"
],
"license": "MIT",
"keywords": [
"next",
"api",
"middleware",
"validation"
],
"scripts": {
"build": "run-p -l build:*",
"build:cjs": "swc ./src/index.ts -o dist/index.cjs.js -C module.type=commonjs",
"build:esm": "swc ./src/index.ts -o dist/index.esm.js -C module.type=es6 ",
"build:tsc": "tsc --project tsconfig.build.json",
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"lint": "run-p -l lint:*",
"lint:tsc": "tsc --noEmit",
"lint:format": "prettier . --check",
"format": "prettier . --write",
"prepare": "husky install",
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.68",
"@types/node": "^18.16.19",
"@vitest/coverage-c8": "^0.32.4",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"next": "^13.4.8",
"node-mocks-http": "^1.12.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"typescript": "^5.1.6",
"vitest": "^0.32.4",
"zod": "^3.21.4"
},
"peerDependencies": {
"next": ">=12.0.0 <14.0.0",
"zod": "^3.19.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
}
}