@astryxdesign/cli 0.1.4-canary.c437a87 → 0.1.4-canary.c92e398
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.1.4-canary.
|
|
3
|
+
"version": "0.1.4-canary.c92e398",
|
|
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",
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"CHANGELOG.md"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@clack/prompts": "^1.
|
|
71
|
+
"@clack/prompts": "^1.7.0",
|
|
72
72
|
"commander": "^12.1.0",
|
|
73
73
|
"jiti": "^2.7.0",
|
|
74
74
|
"jscodeshift": "^17.3.0",
|
|
75
75
|
"zod": "^4.4.3"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@astryxdesign/charts": "0.1.4-canary.
|
|
79
|
-
"@astryxdesign/core": "0.1.4-canary.
|
|
80
|
-
"@astryxdesign/lab": "0.1.4-canary.
|
|
81
|
-
"@astryxdesign/theme-neutral": "0.1.4-canary.
|
|
78
|
+
"@astryxdesign/charts": "0.1.4-canary.c92e398",
|
|
79
|
+
"@astryxdesign/core": "0.1.4-canary.c92e398",
|
|
80
|
+
"@astryxdesign/lab": "0.1.4-canary.c92e398",
|
|
81
|
+
"@astryxdesign/theme-neutral": "0.1.4-canary.c92e398",
|
|
82
82
|
"gpt-tokenizer": "^3.4.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@astryxdesign/charts": "0.1.4-canary.
|
|
100
|
-
"@astryxdesign/core": "0.1.4-canary.
|
|
101
|
-
"@astryxdesign/lab": "0.1.4-canary.
|
|
102
|
-
"@astryxdesign/theme-neutral": "0.1.4-canary.
|
|
99
|
+
"@astryxdesign/charts": "0.1.4-canary.c92e398",
|
|
100
|
+
"@astryxdesign/core": "0.1.4-canary.c92e398",
|
|
101
|
+
"@astryxdesign/lab": "0.1.4-canary.c92e398",
|
|
102
|
+
"@astryxdesign/theme-neutral": "0.1.4-canary.c92e398",
|
|
103
103
|
"gpt-tokenizer": "^3.4.0"
|
|
104
104
|
},
|
|
105
105
|
"scripts": {
|
|
@@ -28,20 +28,10 @@ import * as fs from 'node:fs';
|
|
|
28
28
|
import * as path from 'node:path';
|
|
29
29
|
import * as os from 'node:os';
|
|
30
30
|
import {fileURLToPath} from 'node:url';
|
|
31
|
+
import {ensureCoreBuilt} from './ensure-core-built.mjs';
|
|
31
32
|
|
|
32
33
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
33
34
|
const CLI_BIN = path.resolve(__dirname, '../../bin/astryx.mjs');
|
|
34
|
-
const REPO_ROOT = path.resolve(__dirname, '../../../..');
|
|
35
|
-
const CORE_THEME_ENTRY = path.join(
|
|
36
|
-
REPO_ROOT,
|
|
37
|
-
'packages/core/dist/theme/index.js',
|
|
38
|
-
);
|
|
39
|
-
// The fix reads core's shipped component declarations to decide whether an
|
|
40
|
-
// interface is augmentable; those .d.ts files come from the same core build.
|
|
41
|
-
const CORE_BUTTON_DTS = path.join(
|
|
42
|
-
REPO_ROOT,
|
|
43
|
-
'packages/core/dist/Button/index.d.ts',
|
|
44
|
-
);
|
|
45
35
|
|
|
46
36
|
function runCli(args, cwd) {
|
|
47
37
|
try {
|
|
@@ -68,14 +58,13 @@ function writeTheme(dir, contents) {
|
|
|
68
58
|
return file;
|
|
69
59
|
}
|
|
70
60
|
|
|
61
|
+
// Build core through the shared lock helper — this suite previously ran its
|
|
62
|
+
// own unguarded `if (!exists) pnpm -F core build`, and when Vitest scheduled
|
|
63
|
+
// it alongside the other build-theme suites on a fresh checkout, the
|
|
64
|
+
// concurrent builds collided on packages/core/dist (core's build starts by
|
|
65
|
+
// wiping dist), nondeterministically breaking whichever suite was mid-read.
|
|
71
66
|
beforeAll(() => {
|
|
72
|
-
|
|
73
|
-
execFileSync('pnpm', ['-F', '@astryxdesign/core', 'build'], {
|
|
74
|
-
cwd: REPO_ROOT,
|
|
75
|
-
stdio: 'pipe',
|
|
76
|
-
timeout: 180_000,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
67
|
+
ensureCoreBuilt();
|
|
79
68
|
}, 200_000);
|
|
80
69
|
|
|
81
70
|
let tmpDir;
|