@astryxdesign/cli 0.7.5-canary.577e8ca → 0.7.5-canary.6322d94
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/README.md +1 -1
- package/api/upgrade/_adapter.d.mts +45 -2
- package/api/upgrade/_adapter.mjs +58 -2
- package/api/upgrade/run/outcomes.test.mjs +646 -0
- package/api/upgrade/run/run.d.mts +36 -0
- package/api/upgrade/run/run.mjs +446 -61
- package/api/upgrade/upgrade.doc.mjs +2 -2
- package/api/upgrade/upgrade.type.d.mts +24 -0
- package/api/upgrade/upgrade.type.mjs +15 -3
- package/assets/codemods/outcome.mjs +79 -0
- package/assets/codemods/outcome.test.mjs +40 -0
- package/assets/codemods/runner.mjs +11 -3
- package/assets/codemods/transforms/v0.7.0/__tests__/validate-data-token-ownership.test.mjs +24 -4
- package/assets/codemods/transforms/v0.7.0/validate-data-token-ownership.mjs +6 -3
- package/clients/cli/commands/upgrade.doc.mjs +20 -2
- package/clients/cli/commands/upgrade.outcomes.test.mjs +350 -0
- package/foundation/response/response-types.doc.mjs +1 -1
- package/package.json +10 -9
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file `astryx upgrade` end to end: generated files to rebuild are listed in
|
|
5
|
+
* `regenerate` with their commands. A file the project protects keeps the run
|
|
6
|
+
* incomplete (ERR_CODEMOD_PROTECTED, as for any protected file); one nothing
|
|
7
|
+
* protects stays a codemod error (ERR_CODEMOD_FAILED). A declared
|
|
8
|
+
* regeneration clears them, and a real codemod failure keeps its
|
|
9
|
+
* ERR_CODEMOD_FAILED error.
|
|
10
|
+
* Manual migrations are covered at the API level in
|
|
11
|
+
* `api/upgrade/run/outcomes.test.mjs`.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import {afterEach, beforeEach, describe, expect, it} from 'vitest';
|
|
15
|
+
import {spawnSync} from 'node:child_process';
|
|
16
|
+
import * as fs from 'node:fs';
|
|
17
|
+
import * as os from 'node:os';
|
|
18
|
+
import * as path from 'node:path';
|
|
19
|
+
import {fileURLToPath} from 'node:url';
|
|
20
|
+
import {CLI_VERSION} from '../../../test-utils/release-fixtures.mjs';
|
|
21
|
+
|
|
22
|
+
const CLI = path.resolve(
|
|
23
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
24
|
+
'..',
|
|
25
|
+
'bin',
|
|
26
|
+
'astryx.mjs',
|
|
27
|
+
);
|
|
28
|
+
const CODEMOD = 'core:validate-data-token-ownership';
|
|
29
|
+
const STALE_THEME =
|
|
30
|
+
'/* @generated by `astryx theme build` */\n' +
|
|
31
|
+
'@layer astryx-base {\n :root { --color-data-categorical-green: #008000; }\n}\n';
|
|
32
|
+
const FRESH_THEME = '/* @generated by `astryx theme build` */\n.theme {}\n';
|
|
33
|
+
// The generated block below authored rules: the marker is not in the leading
|
|
34
|
+
// comment block, so nothing protects this file (spec:AST-040 FR3).
|
|
35
|
+
const UNPROTECTED_STALE_THEME = `.app { color: red; }\n${STALE_THEME}`;
|
|
36
|
+
|
|
37
|
+
let root;
|
|
38
|
+
|
|
39
|
+
function write(relative, contents) {
|
|
40
|
+
const file = path.join(root, relative);
|
|
41
|
+
fs.mkdirSync(path.dirname(file), {recursive: true});
|
|
42
|
+
fs.writeFileSync(file, contents);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function read(relative) {
|
|
46
|
+
return fs.readFileSync(path.join(root, relative), 'utf8');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function run(args, {json = true, cwd = root} = {}) {
|
|
50
|
+
const result = spawnSync(
|
|
51
|
+
process.execPath,
|
|
52
|
+
[CLI, ...(json ? ['--json'] : []), 'upgrade', ...args],
|
|
53
|
+
{
|
|
54
|
+
cwd,
|
|
55
|
+
encoding: 'utf8',
|
|
56
|
+
timeout: 60_000,
|
|
57
|
+
env: {...process.env, FORCE_COLOR: '0', CI: ''},
|
|
58
|
+
},
|
|
59
|
+
);
|
|
60
|
+
return {...result, envelope: json ? JSON.parse(result.stdout) : null};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @param {{config?: string}} [options] */
|
|
64
|
+
function seed({config = 'export default {};\n'} = {}) {
|
|
65
|
+
write(
|
|
66
|
+
'package.json',
|
|
67
|
+
JSON.stringify({
|
|
68
|
+
name: 'consumer',
|
|
69
|
+
private: true,
|
|
70
|
+
dependencies: {'@astryxdesign/core': CLI_VERSION},
|
|
71
|
+
}),
|
|
72
|
+
);
|
|
73
|
+
write(
|
|
74
|
+
'node_modules/@astryxdesign/core/package.json',
|
|
75
|
+
JSON.stringify({name: '@astryxdesign/core', version: CLI_VERSION}),
|
|
76
|
+
);
|
|
77
|
+
write('astryx.config.mjs', config);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const ONLY = ['--from', '0.6.0', '--codemod', 'validate-data-token-ownership'];
|
|
81
|
+
|
|
82
|
+
beforeEach(() => {
|
|
83
|
+
root = fs.mkdtempSync(path.join(os.tmpdir(), 'astryx-upgrade-outcomes-'));
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
afterEach(() => {
|
|
87
|
+
fs.rmSync(root, {recursive: true, force: true});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
describe('generated files to regenerate', () => {
|
|
91
|
+
it('are listed with the rebuild command, and in protectedFiles with the declaration that protects them', () => {
|
|
92
|
+
seed();
|
|
93
|
+
write('app/theme.css', STALE_THEME);
|
|
94
|
+
|
|
95
|
+
const applied = run([...ONLY, '--path', '.', '--apply']);
|
|
96
|
+
|
|
97
|
+
expect(applied.status).toBe(1);
|
|
98
|
+
expect(applied.envelope).toMatchObject({
|
|
99
|
+
type: 'upgrade.run',
|
|
100
|
+
data: {
|
|
101
|
+
complete: false,
|
|
102
|
+
errorCode: 'ERR_CODEMOD_PROTECTED',
|
|
103
|
+
errors: [],
|
|
104
|
+
declinedCandidates: [],
|
|
105
|
+
// The stale theme carries an @generated header, so it is a protected
|
|
106
|
+
// file that still requires a change, with its declaration.
|
|
107
|
+
protectedFiles: [
|
|
108
|
+
{
|
|
109
|
+
file: 'app/theme.css',
|
|
110
|
+
codemods: [CODEMOD],
|
|
111
|
+
reasons: ['generated'],
|
|
112
|
+
declarations: [expect.stringContaining('@generated')],
|
|
113
|
+
commands: ['astryx theme build'],
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
regenerate: [
|
|
117
|
+
{
|
|
118
|
+
file: 'app/theme.css',
|
|
119
|
+
codemods: [CODEMOD],
|
|
120
|
+
commands: ['astryx theme build'],
|
|
121
|
+
messages: [expect.stringContaining('Rebuild it')],
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
expect(read('app/theme.css')).toBe(STALE_THEME);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it('read as incomplete in text, never as up to date', () => {
|
|
130
|
+
seed();
|
|
131
|
+
write('app/theme.css', STALE_THEME);
|
|
132
|
+
|
|
133
|
+
const text = run([...ONLY, '--path', '.', '--apply'], {json: false});
|
|
134
|
+
|
|
135
|
+
expect(text.status).toBe(1);
|
|
136
|
+
expect(text.stderr).toMatch(
|
|
137
|
+
/ERR_CODEMOD_PROTECTED: 1 protected file still requires a codemod change:\n\s+app\/theme\.css — .*@generated/,
|
|
138
|
+
);
|
|
139
|
+
expect(text.stdout).toMatch(/Regenerate with: astryx theme build/);
|
|
140
|
+
expect(text.stdout).toMatch(/Upgrade incomplete/);
|
|
141
|
+
expect(`${text.stdout}\n${text.stderr}`).not.toMatch(/No changes needed/);
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
it('keep the incomplete result, not a config error, when astryx.config fails validation too', () => {
|
|
145
|
+
seed({config: "export default {theme: 'neutral'};\n"});
|
|
146
|
+
write('app/theme.css', STALE_THEME);
|
|
147
|
+
|
|
148
|
+
const applied = run([...ONLY, '--path', '.', '--apply']);
|
|
149
|
+
|
|
150
|
+
expect(applied.status).toBe(1);
|
|
151
|
+
expect(applied.envelope).toMatchObject({
|
|
152
|
+
type: 'upgrade.run',
|
|
153
|
+
data: {
|
|
154
|
+
complete: false,
|
|
155
|
+
errorCode: 'ERR_CODEMOD_PROTECTED',
|
|
156
|
+
protectedFiles: [expect.objectContaining({file: 'app/theme.css'})],
|
|
157
|
+
regenerate: [
|
|
158
|
+
expect.objectContaining({
|
|
159
|
+
file: 'app/theme.css',
|
|
160
|
+
commands: ['astryx theme build'],
|
|
161
|
+
}),
|
|
162
|
+
],
|
|
163
|
+
// The config's own error is still listed, as main reports it.
|
|
164
|
+
errors: [
|
|
165
|
+
{
|
|
166
|
+
file: '.',
|
|
167
|
+
codemod: 'config',
|
|
168
|
+
error: expect.stringContaining('astryx.config'),
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
const configError = applied.envelope.data.errors[0].error;
|
|
175
|
+
const text = run([...ONLY, '--path', '.', '--apply'], {json: false});
|
|
176
|
+
expect(text.status).toBe(1);
|
|
177
|
+
expect(text.stderr).toContain(configError);
|
|
178
|
+
expect(text.stdout).toMatch(/Upgrade incomplete: protected changes remain/);
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
it('include protected generated files with their header command, alongside protectedFiles', () => {
|
|
182
|
+
seed();
|
|
183
|
+
write('.gitattributes', 'generated/** linguist-generated=true\n');
|
|
184
|
+
write(
|
|
185
|
+
'generated/panel.tsx',
|
|
186
|
+
'// @generated\n// Command: pnpm run gen:panel\n' +
|
|
187
|
+
"import {useResizable} from '@astryxdesign/core';\n" +
|
|
188
|
+
'export const usePanel = () => useResizable({minSizePx: 200});\n',
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
const applied = run([
|
|
192
|
+
'--from',
|
|
193
|
+
'0.5.0',
|
|
194
|
+
'--codemod',
|
|
195
|
+
'rename-resizable-pixel-bounds',
|
|
196
|
+
'--path',
|
|
197
|
+
'.',
|
|
198
|
+
'--apply',
|
|
199
|
+
]);
|
|
200
|
+
|
|
201
|
+
expect(applied.status).toBe(1);
|
|
202
|
+
expect(applied.envelope.data).toMatchObject({
|
|
203
|
+
complete: false,
|
|
204
|
+
errorCode: 'ERR_CODEMOD_PROTECTED',
|
|
205
|
+
protectedFiles: [expect.objectContaining({file: 'generated/panel.tsx'})],
|
|
206
|
+
regenerate: [
|
|
207
|
+
{
|
|
208
|
+
file: 'generated/panel.tsx',
|
|
209
|
+
codemods: ['core:rename-resizable-pixel-bounds'],
|
|
210
|
+
commands: ['pnpm run gen:panel'],
|
|
211
|
+
messages: [],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
it('clear once the declared regeneration rebuilds the file', () => {
|
|
218
|
+
const rebuild = `require('node:fs').writeFileSync('app/theme.css', ${JSON.stringify(FRESH_THEME)})`;
|
|
219
|
+
seed({
|
|
220
|
+
config: `export default {hooks: {postCodemod: [{name: 'theme', buildCommand: () => ({command: process.execPath, args: ['-e', ${JSON.stringify(rebuild)}]})}]}};\n`,
|
|
221
|
+
});
|
|
222
|
+
write('app/theme.css', STALE_THEME);
|
|
223
|
+
|
|
224
|
+
const applied = run([...ONLY, '--path', '.', '--apply']);
|
|
225
|
+
|
|
226
|
+
expect(applied.status, applied.stderr).toBe(0);
|
|
227
|
+
expect(applied.envelope.data).toMatchObject({
|
|
228
|
+
complete: true,
|
|
229
|
+
regenerate: [],
|
|
230
|
+
modifiedFiles: ['app/theme.css'],
|
|
231
|
+
});
|
|
232
|
+
expect(read('app/theme.css')).toBe(FRESH_THEME);
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
it('report one nothing protects as a codemod error, not ERR_CODEMOD_PROTECTED', () => {
|
|
236
|
+
seed();
|
|
237
|
+
write('app/theme.css', UNPROTECTED_STALE_THEME);
|
|
238
|
+
|
|
239
|
+
const applied = run([...ONLY, '--path', '.', '--apply']);
|
|
240
|
+
|
|
241
|
+
expect(applied.status).toBe(1);
|
|
242
|
+
expect(applied.envelope).not.toHaveProperty('type');
|
|
243
|
+
expect(applied.envelope).toMatchObject({
|
|
244
|
+
code: 'ERR_CODEMOD_FAILED',
|
|
245
|
+
receipt: {
|
|
246
|
+
complete: false,
|
|
247
|
+
errorCode: 'ERR_CODEMOD_FAILED',
|
|
248
|
+
protectedFiles: [],
|
|
249
|
+
errors: [
|
|
250
|
+
expect.objectContaining({
|
|
251
|
+
file: 'app/theme.css',
|
|
252
|
+
codemod: CODEMOD,
|
|
253
|
+
error: expect.stringContaining('Rebuild it'),
|
|
254
|
+
}),
|
|
255
|
+
],
|
|
256
|
+
regenerate: [
|
|
257
|
+
expect.objectContaining({
|
|
258
|
+
file: 'app/theme.css',
|
|
259
|
+
commands: ['astryx theme build'],
|
|
260
|
+
}),
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
const text = run([...ONLY, '--path', '.', '--apply'], {json: false});
|
|
266
|
+
expect(text.status).toBe(1);
|
|
267
|
+
expect(text.stderr).toMatch(
|
|
268
|
+
/1 generated file must be regenerated:\n\s+app\/theme\.css — /,
|
|
269
|
+
);
|
|
270
|
+
expect(text.stderr).not.toMatch(/ERR_CODEMOD_PROTECTED/);
|
|
271
|
+
expect(text.stdout).toMatch(/Regenerate with: astryx theme build/);
|
|
272
|
+
expect(text.stdout).toMatch(/Upgrade failed/);
|
|
273
|
+
expect(`${text.stdout}\n${text.stderr}`).not.toMatch(
|
|
274
|
+
/No changes needed|Done!/,
|
|
275
|
+
);
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
it('name files from the folder the command runs in', () => {
|
|
279
|
+
seed();
|
|
280
|
+
write('app/theme.css', STALE_THEME);
|
|
281
|
+
|
|
282
|
+
const applied = run([...ONLY, '--path', '.', '--apply'], {
|
|
283
|
+
cwd: path.join(root, 'app'),
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
expect(applied.envelope.data).toMatchObject({
|
|
287
|
+
regenerate: [expect.objectContaining({file: 'theme.css'})],
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
describe('a real failure beside them', () => {
|
|
293
|
+
function seedFailing() {
|
|
294
|
+
seed({config: "export default {integrations: ['@acme/widgets']};\n"});
|
|
295
|
+
write(
|
|
296
|
+
'node_modules/@acme/widgets/package.json',
|
|
297
|
+
JSON.stringify({name: '@acme/widgets', version: '1.0.0'}),
|
|
298
|
+
);
|
|
299
|
+
write(
|
|
300
|
+
'node_modules/@acme/widgets/astryx.integration.mjs',
|
|
301
|
+
"export default {codemods: './codemods'};\n",
|
|
302
|
+
);
|
|
303
|
+
write(
|
|
304
|
+
'node_modules/@acme/widgets/codemods/0.7.0/fail.mjs',
|
|
305
|
+
"export default {type: 'code', title: 'Fail on boom', transform: file => { if (file.source.includes('boom')) throw new Error('codemod boom'); return undefined; }};\n",
|
|
306
|
+
);
|
|
307
|
+
write('src/broken.ts', 'export const boom = 1;\n');
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
it('keeps the ERR_CODEMOD_FAILED error, whose receipt carries both lists', () => {
|
|
311
|
+
seedFailing();
|
|
312
|
+
|
|
313
|
+
const applied = run(['--from', '0.6.0', '--path', 'src', '--apply']);
|
|
314
|
+
|
|
315
|
+
expect(applied.status).toBe(1);
|
|
316
|
+
expect(applied.envelope).toMatchObject({
|
|
317
|
+
code: 'ERR_CODEMOD_FAILED',
|
|
318
|
+
receipt: {
|
|
319
|
+
complete: false,
|
|
320
|
+
errorCode: 'ERR_CODEMOD_FAILED',
|
|
321
|
+
errors: [
|
|
322
|
+
expect.objectContaining({
|
|
323
|
+
file: 'src/broken.ts',
|
|
324
|
+
codemod: '@acme/widgets:fail',
|
|
325
|
+
}),
|
|
326
|
+
],
|
|
327
|
+
declinedCandidates: [],
|
|
328
|
+
regenerate: [],
|
|
329
|
+
},
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
it('with a protected file to regenerate, returns the incomplete receipt as for a protected file', () => {
|
|
334
|
+
seedFailing();
|
|
335
|
+
write('src/theme.css', STALE_THEME);
|
|
336
|
+
|
|
337
|
+
const applied = run(['--from', '0.6.0', '--path', 'src', '--apply']);
|
|
338
|
+
|
|
339
|
+
expect(applied.status).toBe(1);
|
|
340
|
+
expect(applied.envelope).toMatchObject({
|
|
341
|
+
type: 'upgrade.run',
|
|
342
|
+
data: {
|
|
343
|
+
complete: false,
|
|
344
|
+
errorCode: 'ERR_CODEMOD_PROTECTED',
|
|
345
|
+
errors: [expect.objectContaining({file: 'src/broken.ts'})],
|
|
346
|
+
regenerate: [expect.objectContaining({file: 'src/theme.css'})],
|
|
347
|
+
},
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
});
|
|
@@ -388,7 +388,7 @@ export const doc = {
|
|
|
388
388
|
{
|
|
389
389
|
value: 'upgrade.run',
|
|
390
390
|
description:
|
|
391
|
-
'The run receipt: from/to versions, codemod count, integrations processed, the agent-docs summary, sourcePathFound (false when the resolved source directory does not exist, so no source file was read), and (apply mode) filesChanged, transformsApplied, and per-codemod errors. When the installed Core is newer than the CLI, it also carries cliBehindCore ({cliVersion, command}): codemods for the releases after cliVersion did not run.',
|
|
391
|
+
'The run receipt: from/to versions, codemod count, integrations processed, the agent-docs summary, sourcePathFound (false when the resolved source directory does not exist, so no source file was read), and (apply mode) filesChanged, transformsApplied, and per-codemod errors. regenerate lists generated files to rebuild, each with its codemods, commands and messages. When the installed Core is newer than the CLI, it also carries cliBehindCore ({cliVersion, command}): codemods for the releases after cliVersion did not run.',
|
|
392
392
|
},
|
|
393
393
|
|
|
394
394
|
// manifest
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.7.5-canary.
|
|
3
|
+
"version": "0.7.5-canary.6322d94",
|
|
4
4
|
"displayName": "CLI",
|
|
5
5
|
"description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
"zod": "^4.4.3"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@astryxdesign/charts": "0.7.5-canary.
|
|
115
|
-
"@astryxdesign/core": "0.7.5-canary.
|
|
116
|
-
"@astryxdesign/lab": "0.7.5-canary.
|
|
117
|
-
"@astryxdesign/theme-neutral": "0.7.5-canary.
|
|
114
|
+
"@astryxdesign/charts": "0.7.5-canary.6322d94",
|
|
115
|
+
"@astryxdesign/core": "0.7.5-canary.6322d94",
|
|
116
|
+
"@astryxdesign/lab": "0.7.5-canary.6322d94",
|
|
117
|
+
"@astryxdesign/theme-neutral": "0.7.5-canary.6322d94"
|
|
118
118
|
},
|
|
119
119
|
"peerDependenciesMeta": {
|
|
120
120
|
"@astryxdesign/charts": {
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@astryxdesign/charts": "0.7.5-canary.
|
|
135
|
-
"@astryxdesign/core": "0.7.5-canary.
|
|
136
|
-
"@astryxdesign/lab": "0.7.5-canary.
|
|
137
|
-
"@astryxdesign/theme-neutral": "0.7.5-canary.
|
|
134
|
+
"@astryxdesign/charts": "0.7.5-canary.6322d94",
|
|
135
|
+
"@astryxdesign/core": "0.7.5-canary.6322d94",
|
|
136
|
+
"@astryxdesign/lab": "0.7.5-canary.6322d94",
|
|
137
|
+
"@astryxdesign/theme-neutral": "0.7.5-canary.6322d94",
|
|
138
138
|
"@heroicons/react": "^2.2.0",
|
|
139
139
|
"@stylexjs/stylex": "^0.19.0",
|
|
140
140
|
"@types/babel__core": "^7.20.5",
|
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
"postinstall": "node scripts/postinstall.mjs",
|
|
147
147
|
"test": "cd ../.. && vitest run packages/cli",
|
|
148
148
|
"test:watch": "cd ../.. && vitest packages/cli",
|
|
149
|
+
"typecheck": "pnpm typecheck:template-docs && pnpm typecheck:strict",
|
|
149
150
|
"typecheck:template-docs": "tsc --project tsconfig.template-docs.json",
|
|
150
151
|
"typecheck:json-api": "tsc --project tsconfig.json-api.json",
|
|
151
152
|
"typecheck:strict": "tsc --project tsconfig.strict.json",
|