@devstroupe/devkit-cli 1.1.13 → 1.1.14

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 (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -293,9 +293,11 @@ function ensureOfficialSpartanTheme(frontendRoot, theme = 'neutral') {
293
293
  if (/--radius\s*:/.test(currentStyles) && /--sidebar-background|--sidebar\s*:/.test(currentStyles)) {
294
294
  return;
295
295
  }
296
+ const officialThemes = ['gray', 'neutral', 'slate', 'stone', 'zinc'];
297
+ const resolvedTheme = officialThemes.includes(theme) ? theme : 'neutral';
296
298
  const ng = getPackageManagerCommand(frontendRoot);
297
- console.log(`[Spartan] Aplicando tema oficial "${theme}"...`);
298
- (0, child_process_1.execSync)(`${ng} g @spartan-ng/cli:ui-theme --theme=${theme} --defaults`, {
299
+ console.log(`[Spartan] Aplicando tema oficial "${resolvedTheme}" (solicitado: "${theme}")...`);
300
+ (0, child_process_1.execSync)(`${ng} g @spartan-ng/cli:ui-theme --theme=${resolvedTheme} --defaults`, {
299
301
  cwd: frontendRoot,
300
302
  stdio: 'inherit'
301
303
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devstroupe/devkit-cli",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "DevsTroupe Development Kit CLI — scaffold NestJS+Angular projects, inject Spartan UI, generate CRUDs and audit architectural governance",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "commander": "^12.0.0",
38
38
  "fs-extra": "^11.2.0",
39
- "@devstroupe/devkit-core": "1.1.13"
39
+ "@devstroupe/devkit-core": "1.1.14"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/fs-extra": "^11.0.4",