rsc-kit 0.22.7 → 0.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12,6 +12,8 @@ const HELP = `
|
|
|
12
12
|
Usage
|
|
13
13
|
rsc-kit init [options] add it to the project in this directory,
|
|
14
14
|
or start one here if the directory is empty
|
|
15
|
+
rsc-kit typegen write the route types without starting Vite,
|
|
16
|
+
for a typecheck after a route was added
|
|
15
17
|
|
|
16
18
|
Run \`rsc-kit init --help\` for what it takes. Freezing pages is part of
|
|
17
19
|
\`vite build\` and has no command: it needs the bundle the build just wrote,
|
|
@@ -36,6 +38,13 @@ if (command === 'init') {
|
|
|
36
38
|
await runInit(rest);
|
|
37
39
|
await notifyIfStale(staleCheck, 'bunx rsc-kit@latest init');
|
|
38
40
|
}
|
|
41
|
+
else if (command === 'typegen') {
|
|
42
|
+
// Loads the app's vite.config through the app's own Vite, so the types come
|
|
43
|
+
// from the plugin version and options the app builds with.
|
|
44
|
+
const { typegen } = await import('@rsc-kit/core/typegen');
|
|
45
|
+
await typegen();
|
|
46
|
+
stdout.write('rsc-kit: route types written\n');
|
|
47
|
+
}
|
|
39
48
|
else {
|
|
40
49
|
stdout.write(`\n Not an rsc-kit command: ${command}\n${HELP}`);
|
|
41
50
|
exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsc-kit",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The rsc-kit command line: add it to a project, and freeze what can be frozen.",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://rsc-kit.dev",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@rsc-kit/core": "^0.22.
|
|
31
|
-
"create-rsc-kit": "^0.22.
|
|
30
|
+
"@rsc-kit/core": "^0.22.9",
|
|
31
|
+
"create-rsc-kit": "^0.22.9"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^24.0.0",
|