@astryxdesign/cli 0.1.4-canary.e9b31f8 → 0.1.4-canary.efa3ea5

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.e9b31f8",
3
+ "version": "0.1.4-canary.efa3ea5",
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.7.0",
71
+ "@clack/prompts": "^1.5.1",
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.e9b31f8",
79
- "@astryxdesign/core": "0.1.4-canary.e9b31f8",
80
- "@astryxdesign/lab": "0.1.4-canary.e9b31f8",
81
- "@astryxdesign/theme-neutral": "0.1.4-canary.e9b31f8",
78
+ "@astryxdesign/charts": "0.1.4-canary.efa3ea5",
79
+ "@astryxdesign/core": "0.1.4-canary.efa3ea5",
80
+ "@astryxdesign/lab": "0.1.4-canary.efa3ea5",
81
+ "@astryxdesign/theme-neutral": "0.1.4-canary.efa3ea5",
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.e9b31f8",
100
- "@astryxdesign/core": "0.1.4-canary.e9b31f8",
101
- "@astryxdesign/lab": "0.1.4-canary.e9b31f8",
102
- "@astryxdesign/theme-neutral": "0.1.4-canary.e9b31f8",
99
+ "@astryxdesign/charts": "0.1.4-canary.efa3ea5",
100
+ "@astryxdesign/core": "0.1.4-canary.efa3ea5",
101
+ "@astryxdesign/lab": "0.1.4-canary.efa3ea5",
102
+ "@astryxdesign/theme-neutral": "0.1.4-canary.efa3ea5",
103
103
  "gpt-tokenizer": "^3.4.0"
104
104
  },
105
105
  "scripts": {
@@ -28,10 +28,20 @@ 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';
32
31
 
33
32
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
34
33
  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
+ );
35
45
 
36
46
  function runCli(args, cwd) {
37
47
  try {
@@ -58,13 +68,14 @@ function writeTheme(dir, contents) {
58
68
  return file;
59
69
  }
60
70
 
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.
66
71
  beforeAll(() => {
67
- ensureCoreBuilt();
72
+ if (!fs.existsSync(CORE_THEME_ENTRY) || !fs.existsSync(CORE_BUTTON_DTS)) {
73
+ execFileSync('pnpm', ['-F', '@astryxdesign/core', 'build'], {
74
+ cwd: REPO_ROOT,
75
+ stdio: 'pipe',
76
+ timeout: 180_000,
77
+ });
78
+ }
68
79
  }, 200_000);
69
80
 
70
81
  let tmpDir;