adminforth 1.3.54-next.11 → 1.3.54-next.12
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.
- package/dist/modules/codeInjector.js +14 -6
- package/modules/codeInjector.ts +17 -7
- package/package.json +1 -1
|
@@ -478,12 +478,20 @@ 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
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
481
|
+
const allPacks = [
|
|
482
|
+
...iconPackageNames,
|
|
483
|
+
...usersPackages,
|
|
484
|
+
...pluginPackages.map(({ packages }) => packages.join(' ')),
|
|
485
|
+
];
|
|
486
|
+
const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
|
|
487
|
+
const allPacksFiltered = allPacks.filter((pack) => {
|
|
488
|
+
// split at last @ because of scoped packages
|
|
489
|
+
const packName = pack.split('@').slice(0, -1).join('@');
|
|
490
|
+
return !EXCLUDE_PACKS.includes(packName);
|
|
491
|
+
});
|
|
492
|
+
const allPacksUnique = Array.from(new Set(allPacksFiltered));
|
|
493
|
+
if (allPacks.length) {
|
|
494
|
+
const npmInstallCommand = `install ${allPacksUnique.join(' ')}`;
|
|
487
495
|
yield this.runNpmShell({ command: npmInstallCommand, cwd: CodeInjector.SPA_TMP_PATH });
|
|
488
496
|
}
|
|
489
497
|
yield fs.promises.writeFile(hashPath, fullHash);
|
package/modules/codeInjector.ts
CHANGED
|
@@ -551,13 +551,23 @@ class CodeInjector implements ICodeInjector {
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
await this.runNpmShell({command: 'ci', cwd: CodeInjector.SPA_TMP_PATH});
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
554
|
+
|
|
555
|
+
const allPacks = [
|
|
556
|
+
...iconPackageNames,
|
|
557
|
+
...usersPackages,
|
|
558
|
+
...pluginPackages.map(({ packages }) => packages.join(' ')),
|
|
559
|
+
];
|
|
560
|
+
const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
|
|
561
|
+
|
|
562
|
+
const allPacksFiltered = allPacks.filter((pack) => {
|
|
563
|
+
// split at last @ because of scoped packages
|
|
564
|
+
const packName = pack.split('@').slice(0, -1).join('@');
|
|
565
|
+
return !EXCLUDE_PACKS.includes(packName);
|
|
566
|
+
})
|
|
567
|
+
const allPacksUnique = Array.from(new Set(allPacksFiltered));
|
|
568
|
+
|
|
569
|
+
if (allPacks.length) {
|
|
570
|
+
const npmInstallCommand = `install ${allPacksUnique.join(' ')}`;
|
|
561
571
|
await this.runNpmShell({command: npmInstallCommand, cwd: CodeInjector.SPA_TMP_PATH});
|
|
562
572
|
}
|
|
563
573
|
|