@astryxdesign/cli 0.7.9-canary.53fa237 → 0.7.9-canary.5cb261b

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.
@@ -40,7 +40,7 @@ export const docs = {
40
40
  blocks: [
41
41
  {
42
42
  type: 'prose',
43
- text: '`Calendar` shows the Gregorian calendar unless the application chooses another one; DateInput, DateRangeInput, and DateTimeInput stay Gregorian. Values never change with the calendar: they stay Gregorian ISO dates. {@link generic:i18n-calendars} has the short version.',
43
+ text: '`Calendar`, DateInput, DateRangeInput, and DateTimeInput show the Gregorian calendar unless the application chooses another one. Values never change with the calendar: they stay Gregorian ISO dates. {@link generic:i18n-calendars} has the short version.',
44
44
  },
45
45
  ],
46
46
  };
@@ -383,6 +383,15 @@ export function providerLedgerOf(project) {
383
383
  return PROVIDER_LEDGERS.get(project) ?? new Map();
384
384
  }
385
385
 
386
+ /**
387
+ * True when an integration's templates root exists, the only place its
388
+ * templates come from (discoverIntegrationTemplatesForOne).
389
+ * @param {any} integration
390
+ * @returns {boolean}
391
+ */
392
+ const hasTemplatesRoot = integration =>
393
+ integration?.templates != null && fs.existsSync(integration.templates);
394
+
386
395
  /**
387
396
  * The single API for reading resolved project configuration. Construct via the
388
397
  * async {@link Project.load} factory.
@@ -1265,8 +1274,12 @@ export class Project {
1265
1274
  if (this.#loadedIntegrations.length > 0) {
1266
1275
  // Template replacement validity depends on the combined Core +
1267
1276
  // integration catalog. Resolve it first so issue results never depend
1268
- // on which discovery method the caller happened to invoke earlier.
1269
- await this.templates();
1277
+ // on which discovery method the caller happened to invoke earlier. Only
1278
+ // an integration's own templates can replace one, so with none, Core's
1279
+ // templates stay unread.
1280
+ if (this.#loadedIntegrations.some(hasTemplatesRoot)) {
1281
+ await this.templates();
1282
+ }
1270
1283
  // Component replacement validity likewise depends on Core plus every
1271
1284
  // integration's components.
1272
1285
  await this.componentReplacements();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.9-canary.53fa237",
3
+ "version": "0.7.9-canary.5cb261b",
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",
@@ -124,10 +124,10 @@
124
124
  "zod": "^4.4.3"
125
125
  },
126
126
  "peerDependencies": {
127
- "@astryxdesign/charts": "0.7.9-canary.53fa237",
128
- "@astryxdesign/core": "0.7.9-canary.53fa237",
129
- "@astryxdesign/lab": "0.7.9-canary.53fa237",
130
- "@astryxdesign/theme-neutral": "0.7.9-canary.53fa237"
127
+ "@astryxdesign/charts": "0.7.9-canary.5cb261b",
128
+ "@astryxdesign/core": "0.7.9-canary.5cb261b",
129
+ "@astryxdesign/lab": "0.7.9-canary.5cb261b",
130
+ "@astryxdesign/theme-neutral": "0.7.9-canary.5cb261b"
131
131
  },
132
132
  "peerDependenciesMeta": {
133
133
  "@astryxdesign/charts": {
@@ -144,10 +144,10 @@
144
144
  }
145
145
  },
146
146
  "devDependencies": {
147
- "@astryxdesign/charts": "0.7.9-canary.53fa237",
148
- "@astryxdesign/core": "0.7.9-canary.53fa237",
149
- "@astryxdesign/lab": "0.7.9-canary.53fa237",
150
- "@astryxdesign/theme-neutral": "0.7.9-canary.53fa237",
147
+ "@astryxdesign/charts": "0.7.9-canary.5cb261b",
148
+ "@astryxdesign/core": "0.7.9-canary.5cb261b",
149
+ "@astryxdesign/lab": "0.7.9-canary.5cb261b",
150
+ "@astryxdesign/theme-neutral": "0.7.9-canary.5cb261b",
151
151
  "@heroicons/react": "^2.2.0",
152
152
  "@stylexjs/stylex": "^0.19.0",
153
153
  "@types/babel__core": "^7.20.5",