@astryxdesign/cli 0.7.1-canary.ff40b78 → 0.7.2-canary.c68f5e8

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 (33) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/api/build/_adapter.d.mts +1 -0
  3. package/api/build/_adapter.mjs +7 -0
  4. package/api/build/build.mjs +4 -1
  5. package/api/search/search.mjs +12 -0
  6. package/api/template/table-filter-view-tabs.test.mjs +45 -0
  7. package/api/theme/build/build.core-on-demand.test.mjs +113 -0
  8. package/api/theme/build/build.d.mts +13 -13
  9. package/api/theme/build/build.mjs +72 -37
  10. package/assets/docs/getting-started.doc.mjs +0 -10
  11. package/assets/docs/styling-overview.doc.mjs +54 -15
  12. package/assets/docs/tree/migration-setup.doc.mjs +31 -6
  13. package/assets/docs/tree/responsive.doc.mjs +37 -0
  14. package/assets/docs/tree/tailwind.doc.mjs +12 -0
  15. package/assets/docs/tree/tokens-and-setup.doc.mjs +3 -2
  16. package/assets/docs/tree/tokens-syntax.doc.mjs +20 -0
  17. package/assets/docs/tree/tokens.doc.mjs +1 -1
  18. package/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsx +6 -1
  19. package/assets/templates/pages/table-filter/page.tsx +3 -2
  20. package/assets/templates/themes/butter/butterTheme.ts +53 -11
  21. package/assets/templates/themes/chocolate/chocolateTheme.ts +29 -5
  22. package/assets/templates/themes/gothic/gothicTheme.ts +44 -9
  23. package/assets/templates/themes/stone/stoneTheme.ts +58 -11
  24. package/assets/templates/themes/y2k/y2kTheme.ts +60 -10
  25. package/clients/cli/commands/build-theme.mjs +32 -4
  26. package/clients/cli/commands/build-theme.watch.test.mjs +63 -2
  27. package/foundation/discovery/component-discovery.mjs +27 -26
  28. package/foundation/discovery/hook-discovery.mjs +13 -12
  29. package/foundation/fs/listing-cache.d.mts +36 -0
  30. package/foundation/fs/listing-cache.mjs +95 -0
  31. package/foundation/fs/listing-cache.test.mjs +88 -0
  32. package/foundation/fs/paths.mjs +3 -2
  33. package/package.json +9 -9
@@ -10,6 +10,7 @@ import * as fs from 'node:fs';
10
10
  import {createRequire} from 'node:module';
11
11
  import * as path from 'node:path';
12
12
  import {fileURLToPath} from 'node:url';
13
+ import {listDir, pathExists} from './listing-cache.mjs';
13
14
 
14
15
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
15
16
 
@@ -231,7 +232,7 @@ export function listComponents(coreDir) {
231
232
  * @returns {boolean}
232
233
  */
233
234
  export function existsCaseExact(targetPath, rootDir) {
234
- if (!fs.existsSync(targetPath)) return false;
235
+ if (!pathExists(targetPath)) return false;
235
236
 
236
237
  const rel = path.relative(rootDir, targetPath);
237
238
  if (rel === '') return true;
@@ -241,7 +242,7 @@ export function existsCaseExact(targetPath, rootDir) {
241
242
  for (const segment of rel.split(path.sep)) {
242
243
  let entries;
243
244
  try {
244
- entries = fs.readdirSync(dir);
245
+ entries = listDir(dir);
245
246
  } catch {
246
247
  return false;
247
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.1-canary.ff40b78",
3
+ "version": "0.7.2-canary.c68f5e8",
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",
@@ -101,10 +101,10 @@
101
101
  "zod": "^4.4.3"
102
102
  },
103
103
  "peerDependencies": {
104
- "@astryxdesign/charts": "0.7.1-canary.ff40b78",
105
- "@astryxdesign/core": "0.7.1-canary.ff40b78",
106
- "@astryxdesign/lab": "0.7.1-canary.ff40b78",
107
- "@astryxdesign/theme-neutral": "0.7.1-canary.ff40b78"
104
+ "@astryxdesign/charts": "0.7.2-canary.c68f5e8",
105
+ "@astryxdesign/core": "0.7.2-canary.c68f5e8",
106
+ "@astryxdesign/lab": "0.7.2-canary.c68f5e8",
107
+ "@astryxdesign/theme-neutral": "0.7.2-canary.c68f5e8"
108
108
  },
109
109
  "peerDependenciesMeta": {
110
110
  "@astryxdesign/charts": {
@@ -121,10 +121,10 @@
121
121
  }
122
122
  },
123
123
  "devDependencies": {
124
- "@astryxdesign/charts": "0.7.1-canary.ff40b78",
125
- "@astryxdesign/core": "0.7.1-canary.ff40b78",
126
- "@astryxdesign/lab": "0.7.1-canary.ff40b78",
127
- "@astryxdesign/theme-neutral": "0.7.1-canary.ff40b78",
124
+ "@astryxdesign/charts": "0.7.2-canary.c68f5e8",
125
+ "@astryxdesign/core": "0.7.2-canary.c68f5e8",
126
+ "@astryxdesign/lab": "0.7.2-canary.c68f5e8",
127
+ "@astryxdesign/theme-neutral": "0.7.2-canary.c68f5e8",
128
128
  "@heroicons/react": "^2.2.0",
129
129
  "@stylexjs/stylex": "^0.19.0",
130
130
  "@types/babel__core": "^7.20.5",