forked from Innei/next-suspense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
75 lines (75 loc) · 2.04 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
{
"name": "next-suspense",
"version": "0.1.3",
"description": "A suspense wrapper for NextJS when change router and fetching data in CSR.",
"author": "Innei",
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "types/index.d.ts",
"unpkg": "dist/index.umd.min.js",
"files": [
"dist",
"lib",
"esm",
"readme.md",
"tsconfig.json",
"types"
],
"engines": {
"pnpm": ">=7"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --ignore-path ./.prettierignore --write ",
"eslint --cache"
]
},
"bump": {
"before": [
"npm run package"
],
"publish": true
},
"scripts": {
"prepare": "npm run package",
"prebuild": "rm -rf lib && rm -rf esm",
"build": "tsc --build ./src/tsconfig.build.json && tsc --build src/tsconfig.cjs.json",
"postbuild": "tsc-alias -p src/tsconfig.build.json && tsc-alias -p src/tsconfig.cjs.json && npm run types",
"types": "rm -rf types && tsc --build src/tsconfig.types.json && tsc-alias -p src/tsconfig.types.json",
"package": "NODE_ENV=production npm run build && rollup -c",
"prepackage": "rm -rf build",
"dev": "cd example && pnpm run dev",
"build:next": "cd example && pnpm run build"
},
"peerDependencies": {
"next": ">=10"
},
"devDependencies": {
"@innei/eslint-config-react-ts": "latest",
"@innei/eslint-config-ts": "latest",
"@innei/prettier": "latest",
"@rollup/plugin-commonjs": "22.0.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-typescript": "8.3.3",
"@types/node": "18.0.0",
"esbuild": "^0.14.49",
"husky": "8.0.1",
"lint-staged": "13.0.3",
"next": "^12.2.2",
"prettier": "2.7.1",
"rollup": "2.75.7",
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-terser": "7.0.2",
"tsc-alias": "1.6.11",
"tslib": "2.4.0",
"typescript": "4.7.4"
}
}