create-rsc-kit 0.22.8 → 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/templates.js +5 -2
- package/package.json +1 -1
package/dist/templates.js
CHANGED
|
@@ -106,7 +106,10 @@ export function scripts(o) {
|
|
|
106
106
|
}
|
|
107
107
|
: {}),
|
|
108
108
|
}),
|
|
109
|
-
|
|
109
|
+
// The route types first: they are written when Vite starts, and a
|
|
110
|
+
// typecheck run without one read the last start's - a route added since
|
|
111
|
+
// was not a Route yet.
|
|
112
|
+
typecheck: 'rsc-kit-typegen && tsc --noEmit',
|
|
110
113
|
...(o.lint ? { lint: 'oxlint src --fix', 'lint:check': 'oxlint src --deny-warnings' } : {}),
|
|
111
114
|
// Laravel returned above: its pages call into PHP that createTestApp does
|
|
112
115
|
// not run, and its tests are Pest, on the other side.
|
|
@@ -119,7 +122,7 @@ function testScripts(o) {
|
|
|
119
122
|
test,
|
|
120
123
|
// The one command an agent runs before saying it is done. Each part exists
|
|
121
124
|
// on its own; this is so nothing has to remember the list.
|
|
122
|
-
check: ['tsc --noEmit', ...(o.lint ? ['oxlint src --deny-warnings'] : []), test].join(' && '),
|
|
125
|
+
check: ['rsc-kit-typegen', 'tsc --noEmit', ...(o.lint ? ['oxlint src --deny-warnings'] : []), test].join(' && '),
|
|
123
126
|
};
|
|
124
127
|
}
|
|
125
128
|
export function packageJson(o) {
|