@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.
- package/CHANGELOG.md +35 -0
- package/api/build/_adapter.d.mts +1 -0
- package/api/build/_adapter.mjs +7 -0
- package/api/build/build.mjs +4 -1
- package/api/search/search.mjs +12 -0
- package/api/template/table-filter-view-tabs.test.mjs +45 -0
- package/api/theme/build/build.core-on-demand.test.mjs +113 -0
- package/api/theme/build/build.d.mts +13 -13
- package/api/theme/build/build.mjs +72 -37
- package/assets/docs/getting-started.doc.mjs +0 -10
- package/assets/docs/styling-overview.doc.mjs +54 -15
- package/assets/docs/tree/migration-setup.doc.mjs +31 -6
- package/assets/docs/tree/responsive.doc.mjs +37 -0
- package/assets/docs/tree/tailwind.doc.mjs +12 -0
- package/assets/docs/tree/tokens-and-setup.doc.mjs +3 -2
- package/assets/docs/tree/tokens-syntax.doc.mjs +20 -0
- package/assets/docs/tree/tokens.doc.mjs +1 -1
- package/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsx +6 -1
- package/assets/templates/pages/table-filter/page.tsx +3 -2
- package/assets/templates/themes/butter/butterTheme.ts +53 -11
- package/assets/templates/themes/chocolate/chocolateTheme.ts +29 -5
- package/assets/templates/themes/gothic/gothicTheme.ts +44 -9
- package/assets/templates/themes/stone/stoneTheme.ts +58 -11
- package/assets/templates/themes/y2k/y2kTheme.ts +60 -10
- package/clients/cli/commands/build-theme.mjs +32 -4
- package/clients/cli/commands/build-theme.watch.test.mjs +63 -2
- package/foundation/discovery/component-discovery.mjs +27 -26
- package/foundation/discovery/hook-discovery.mjs +13 -12
- package/foundation/fs/listing-cache.d.mts +36 -0
- package/foundation/fs/listing-cache.mjs +95 -0
- package/foundation/fs/listing-cache.test.mjs +88 -0
- package/foundation/fs/paths.mjs +3 -2
- package/package.json +9 -9
package/foundation/fs/paths.mjs
CHANGED
|
@@ -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 (!
|
|
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 =
|
|
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.
|
|
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.
|
|
105
|
-
"@astryxdesign/core": "0.7.
|
|
106
|
-
"@astryxdesign/lab": "0.7.
|
|
107
|
-
"@astryxdesign/theme-neutral": "0.7.
|
|
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.
|
|
125
|
-
"@astryxdesign/core": "0.7.
|
|
126
|
-
"@astryxdesign/lab": "0.7.
|
|
127
|
-
"@astryxdesign/theme-neutral": "0.7.
|
|
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",
|