@devstroupe/devkit-cli 1.1.0 → 1.1.1

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 +7 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -719,10 +719,16 @@ function ensureNavigationIcons(frontendRoot, icons) {
719
719
  content = content.replace(/(provideIcons\(\{[\s\S]*?)(\n\s*}\))/, (match, providers, suffix) => `${providers.replace(/\s*$/, '')},\n ${missingIcons.join(',\n ')}${suffix}`);
720
720
  fs.writeFileSync(configPath, content, 'utf-8');
721
721
  }
722
+ let cliVersion = '1.1.0';
723
+ try {
724
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'));
725
+ cliVersion = pkg.version;
726
+ }
727
+ catch { }
722
728
  program
723
729
  .name('devstroupe')
724
730
  .description('DevsTroupe Development Kit (DT-DevKit) CLI')
725
- .version('1.0.0');
731
+ .version(cliVersion);
726
732
  // Comando init
727
733
  program
728
734
  .command('init')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devstroupe/devkit-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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.0"
39
+ "@devstroupe/devkit-core": "1.1.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/fs-extra": "^11.0.4",