adminforth 1.3.54-next.11 → 1.3.54-next.13

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.
@@ -478,12 +478,21 @@ class CodeInjector {
478
478
  process.env.HEAVY_DEBUG && console.log('🪲Hash file does not exist, proceeding with npm ci/install');
479
479
  }
480
480
  yield this.runNpmShell({ command: 'ci', cwd: CodeInjector.SPA_TMP_PATH });
481
- if (iconPackageNames.length) {
482
- const npmInstallCommand = `install ${[
483
- ...iconPackageNames,
484
- ...usersPackages,
485
- ...pluginPackages.map(({ packages }) => packages.join(' ')),
486
- ].join(' ')}`;
481
+ const allPacks = [
482
+ ...iconPackageNames,
483
+ ...usersPackages,
484
+ ...pluginPackages.reduce((acc, { packages }) => {
485
+ acc.push(...packages);
486
+ return acc;
487
+ }, []),
488
+ ];
489
+ const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
490
+ const allPacksFiltered = allPacks.filter((pack) => {
491
+ return !EXCLUDE_PACKS.some((exclude) => pack.startsWith(exclude));
492
+ });
493
+ const allPacksUnique = Array.from(new Set(allPacksFiltered));
494
+ if (allPacks.length) {
495
+ const npmInstallCommand = `install ${allPacksUnique.join(' ')}`;
487
496
  yield this.runNpmShell({ command: npmInstallCommand, cwd: CodeInjector.SPA_TMP_PATH });
488
497
  }
489
498
  yield fs.promises.writeFile(hashPath, fullHash);
@@ -551,13 +551,24 @@ class CodeInjector implements ICodeInjector {
551
551
  }
552
552
 
553
553
  await this.runNpmShell({command: 'ci', cwd: CodeInjector.SPA_TMP_PATH});
554
-
555
- if (iconPackageNames.length) {
556
- const npmInstallCommand = `install ${[
557
- ...iconPackageNames,
558
- ...usersPackages,
559
- ...pluginPackages.map(({ packages }) => packages.join(' ')),
560
- ].join(' ')}`;
554
+
555
+ const allPacks = [
556
+ ...iconPackageNames,
557
+ ...usersPackages,
558
+ ...pluginPackages.reduce((acc, { packages }) => {
559
+ acc.push(...packages);
560
+ return acc;
561
+ }, []),
562
+ ];
563
+ const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
564
+
565
+ const allPacksFiltered = allPacks.filter((pack) => {
566
+ return !EXCLUDE_PACKS.some((exclude) => pack.startsWith(exclude));
567
+ })
568
+ const allPacksUnique = Array.from(new Set(allPacksFiltered));
569
+
570
+ if (allPacks.length) {
571
+ const npmInstallCommand = `install ${allPacksUnique.join(' ')}`;
561
572
  await this.runNpmShell({command: npmInstallCommand, cwd: CodeInjector.SPA_TMP_PATH});
562
573
  }
563
574
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.3.54-next.11",
3
+ "version": "1.3.54-next.13",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",