Skip to content

Commit 890c865

Browse files
authored
feat: add re-export type attribute (#364)
1 parent a4726c2 commit 890c865

File tree

7 files changed

+465
-186
lines changed

7 files changed

+465
-186
lines changed

docs/guide/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Prerequisites
66

7-
- [Node.js](https://nodejs.org) version 18.17 or higher, LTS version is recommended.
7+
- [Node.js](https://nodejs.org) version 18.20 or higher, LTS version is recommended.
88
- macOS, Windows, and Linux are supported.
99

1010
::: code-group

examples/nextjs/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"name": "@velite/next-starter",
33
"version": "0.1.0",
44
"private": true,
5+
"type": "module",
56
"scripts": {
6-
"dev": "next dev --turbo",
7+
"dev": "next dev",
78
"build": "next build",
89
"start": "next start",
910
"content": "velite --clean"
@@ -12,13 +13,13 @@
1213
"@tailwindcss/postcss": "^4.1.12",
1314
"@tailwindcss/typography": "^0.5.16",
1415
"@types/node": "^24.3.0",
15-
"@types/react": "^19.1.11",
16-
"@types/react-dom": "^19.1.7",
17-
"next": "^15.5.0",
16+
"@types/react": "19.2.7",
17+
"@types/react-dom": "19.2.3",
18+
"next": "16.0.7",
1819
"next-themes": "^0.4.6",
1920
"postcss": "^8.5.6",
20-
"react": "^19.1.1",
21-
"react-dom": "^19.1.1",
21+
"react": "19.2.1",
22+
"react-dom": "19.2.1",
2223
"rehype-pretty-code": "^0.14.1",
2324
"shiki": "^3.11.0",
2425
"tailwindcss": "^4.1.12",

examples/nextjs/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
plugins: ['@tailwindcss/postcss']
33
}

examples/nextjs/tsconfig.json

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -11,14 +15,30 @@
1115
"moduleResolution": "bundler",
1216
"resolveJsonModule": true,
1317
"isolatedModules": true,
14-
"jsx": "preserve",
18+
"jsx": "react-jsx",
1519
"incremental": true,
16-
"plugins": [{ "name": "next" }],
20+
"plugins": [
21+
{
22+
"name": "next"
23+
}
24+
],
1725
"paths": {
18-
"@/*": ["./*"],
19-
"#velite": ["./.velite"]
26+
"@/*": [
27+
"./*"
28+
],
29+
"#velite": [
30+
"./.velite"
31+
]
2032
}
2133
},
22-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
23-
"exclude": ["node_modules"]
34+
"include": [
35+
"next-env.d.ts",
36+
"**/*.ts",
37+
"**/*.tsx",
38+
".next/types/**/*.ts",
39+
".next/dev/types/**/*.ts"
40+
],
41+
"exclude": [
42+
"node_modules"
43+
]
2444
}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"treeshake": true,
5151
"clean": true
5252
},
53-
"prettier": "@zce/prettier-config",
5453
"simple-git-hooks": {
5554
"pre-commit": "pnpm lint-staged"
5655
},
@@ -68,7 +67,7 @@
6867
"@types/mdast": "^4.0.4",
6968
"@types/node": "^22.15.19",
7069
"@types/picomatch": "^4.0.2",
71-
"@zce/prettier-config": "^1.0.0",
70+
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
7271
"chokidar": "^4.0.3",
7372
"fast-glob": "^3.3.3",
7473
"hast-util-raw": "^9.1.0",
@@ -96,6 +95,6 @@
9695
},
9796
"packageManager": "pnpm@10.15.0",
9897
"engines": {
99-
"node": "^18.17.0 || >=20.3.0"
98+
"node": "^18.20.0 || >=20.3.0"
10099
}
101100
}

0 commit comments

Comments
 (0)