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.
- package/dist/modules/codeInjector.js +15 -6
- package/modules/codeInjector.ts +18 -7
- package/package.json +1 -1
|
@@ -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
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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);
|
package/modules/codeInjector.ts
CHANGED
|
@@ -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
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
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
|
|