@fluid-app/fluid-cli-theme-dev 0.1.19 → 0.1.21

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @fluid-app/fluid-cli-theme-dev@0.1.19 build /home/runner/_work/fluid-mono/fluid-mono/packages/cli/theme-dev
2
+ > @fluid-app/fluid-cli-theme-dev@0.1.21 build /home/runner/_work/fluid-mono/fluid-mono/packages/cli/theme-dev
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.21.0 powered by rolldown v1.0.0-rc.7
@@ -8,9 +8,9 @@
8
8
  ℹ target: node24
9
9
  ℹ tsconfig: tsconfig.json
10
10
  ℹ Build start
11
- ℹ dist/index.mjs  76.50 kB │ gzip: 20.89 kB
12
- ℹ dist/index.mjs.map 195.14 kB │ gzip: 46.02 kB
11
+ ℹ dist/index.mjs  76.86 kB │ gzip: 21.05 kB
12
+ ℹ dist/index.mjs.map 196.02 kB │ gzip: 46.38 kB
13
13
  ℹ dist/index.d.mts.map  0.11 kB │ gzip: 0.12 kB
14
14
  ℹ dist/index.d.mts  0.19 kB │ gzip: 0.16 kB
15
- ℹ 4 files, total: 271.94 kB
16
- ✔ Build complete in 1299ms
15
+ ℹ 4 files, total: 273.18 kB
16
+ ✔ Build complete in 1315ms
@@ -1,4 +1,4 @@
1
1
 
2
- > @fluid-app/fluid-cli-theme-dev@0.1.19 typecheck /home/runner/_work/fluid-mono/fluid-mono/packages/cli/theme-dev
2
+ > @fluid-app/fluid-cli-theme-dev@0.1.21 typecheck /home/runner/_work/fluid-mono/fluid-mono/packages/cli/theme-dev
3
3
  > tsc --noEmit
4
4
 
package/dist/index.mjs CHANGED
@@ -526,10 +526,12 @@ const VALID_SETTING_TYPES = Object.values({
526
526
  /**
527
527
  * Message shown when a setting declares a `type` that is not one of the
528
528
  * canonical `VALID_SETTING_TYPES`. Centralized here so the CLI and the editor
529
- * render identical text (including the list of available types).
529
+ * render identical text. Kept to a single line — the list of valid types is a
530
+ * static set exposed once via the `VALID_SETTING_TYPES` export, so repeating it
531
+ * in every diagnostic only bloats structured output.
530
532
  */
531
533
  function invalidSettingTypeMessage(type) {
532
- return `Invalid settings type: '${type}'\nAvailable types:\n${VALID_SETTING_TYPES.join(", \n")}`;
534
+ return `Invalid settings type: '${type}'`;
533
535
  }
534
536
  function validateSettings(settings) {
535
537
  const diagnostics = [];
@@ -2108,11 +2110,13 @@ function createLintCommand() {
2108
2110
  let warnings = 0;
2109
2111
  for (const { diagnostics } of results) for (const d of diagnostics) if (d.severity === "error") errors++;
2110
2112
  else warnings++;
2113
+ const hasInvalidSettingType = results.some(({ diagnostics }) => diagnostics.some((d) => d.target?.kind === "setting" && d.target.field === "type" && d.target.settingType !== void 0));
2111
2114
  if (opts.json) console.log(JSON.stringify({
2112
2115
  ok: errors === 0,
2113
2116
  errors,
2114
2117
  warnings,
2115
2118
  filesChecked: liquidFiles.length,
2119
+ ...hasInvalidSettingType ? { validSettingTypes: VALID_SETTING_TYPES } : {},
2116
2120
  files: results
2117
2121
  }));
2118
2122
  else printText(results, errors, warnings, liquidFiles.length);