Skip to content

Commit 712096f

Browse files
committed
[optimize] generate Next.js types automatically
1 parent 4d89463 commit 712096f

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ package-lock.json
1010
/coverage
1111

1212
# next.js
13+
next-env.d.ts
1314
/.next/
1415
/out/
1516

next-env.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"e": "pnpx @dotenvx/dotenvx run -f .env.personal.local -- pnpm",
88
"prepare": "husky",
99
"install": "pnpx git-utility download https://github.com/Open-Source-Bazaar/key-vault main Open-Source-Bazaar.github.io || true",
10+
"postinstall": "next typegen",
1011
"dev": "next dev --webpack",
1112
"build": "next build --webpack",
1213
"start": "next start",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"moduleResolution": "Node",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
16-
"jsx": "preserve",
16+
"jsx": "react-jsx",
1717
"incremental": true
1818
},
1919
"include": ["*.mjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.mdx"],

0 commit comments

Comments
 (0)