rsc-kit 0.40.0 → 0.41.0

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 +4 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ if (command === 'init') {
54
54
  else if (command === 'typegen') {
55
55
  // Loads the app's vite.config through the app's own Vite, so the types come
56
56
  // from the plugin version and options the app builds with.
57
- const { typegen } = await import('@rsc-kit/core/typegen');
57
+ const { typegen } = await import('@rsc-kit/core/internal/typegen');
58
58
  const check = rest.includes('--check');
59
59
  const stale = await typegen(process.cwd(), check);
60
60
  if (!check) {
@@ -74,7 +74,7 @@ else if (command === 'info') {
74
74
  // What a build of this app will produce, before building: for a deploy
75
75
  // that plans a binary or a folder first. The build confirms it in
76
76
  // .output/rsc-kit.json.
77
- const { appInfo } = await import('@rsc-kit/core/typegen');
77
+ const { appInfo } = await import('@rsc-kit/core/internal/typegen');
78
78
  try {
79
79
  const info = await appInfo(process.cwd());
80
80
  if (rest.includes('--json'))
@@ -90,12 +90,12 @@ else if (command === 'info') {
90
90
  else if (command === 'make:form') {
91
91
  // A public form from a backend action: the file the docs write by hand,
92
92
  // with the generated action imported, for Laravel and Go alike.
93
- const { makeForm } = await import('@rsc-kit/core/typegen');
93
+ const { makeForm } = await import('@rsc-kit/core/internal/typegen');
94
94
  const action = rest.find((arg) => !arg.startsWith('--'));
95
95
  const at = rest.indexOf('--name');
96
96
  const name = at >= 0 ? rest[at + 1] : undefined;
97
97
  if (!action) {
98
- stdout.write('\n rsc-kit make:form needs an action: rsc-kit make:form contactSend\n\n');
98
+ stdout.write('\n rsc-kit make:form needs an action, named as rpc() names it: rsc-kit make:form Contact.send\n\n');
99
99
  exit(1);
100
100
  }
101
101
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsc-kit",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
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.40.0",
31
- "create-rsc-kit": "^0.40.0"
30
+ "@rsc-kit/core": "^0.41.0",
31
+ "create-rsc-kit": "^0.41.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^24.0.0",