rsc-kit 0.29.5 → 0.29.6

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -15,6 +15,9 @@ const HELP = `
15
15
  rsc-kit typegen [--check] write the route types without starting Vite,
16
16
  for a typecheck after a route was added;
17
17
  --check fails if committed ones are stale
18
+ rsc-kit info [--json] what a build of this app will produce, before
19
+ building: a server (and its compile step and
20
+ binary) or a static export (and its folder)
18
21
  rsc-kit agents bring the rsc-kit section of AGENTS.md up to
19
22
  this version's rules; review it in git.
20
23
  An older section without a stamp needs
@@ -63,6 +66,23 @@ else if (command === 'typegen') {
63
66
  exit(1);
64
67
  }
65
68
  }
69
+ else if (command === 'info') {
70
+ // What a build of this app will produce, before building: for a deploy
71
+ // that plans a binary or a folder first. The build confirms it in
72
+ // .output/rsc-kit.json.
73
+ const { appInfo } = await import('@rsc-kit/core/typegen');
74
+ try {
75
+ const info = await appInfo(process.cwd());
76
+ if (rest.includes('--json'))
77
+ stdout.write(JSON.stringify(info) + '\n');
78
+ else
79
+ stdout.write(Object.entries(info).map(([k, v]) => ` ${k}: ${v}`).join('\n') + '\n');
80
+ }
81
+ catch (error) {
82
+ stdout.write(`\n rsc-kit info: ${error instanceof Error ? error.message : String(error)}\n\n`);
83
+ exit(1);
84
+ }
85
+ }
66
86
  else if (command === 'agents') {
67
87
  // The rules an agent follows here, as this version writes them. Only the
68
88
  // marked section changes; the app's own instructions around it are left be.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsc-kit",
3
- "version": "0.29.5",
3
+ "version": "0.29.6",
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.29.5",
31
- "create-rsc-kit": "^0.29.5"
30
+ "@rsc-kit/core": "^0.29.6",
31
+ "create-rsc-kit": "^0.29.6"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^24.0.0",