adminforth 1.3.54-next.12 → 1.3.54-next.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.
@@ -481,13 +481,14 @@ class CodeInjector {
481
481
  const allPacks = [
482
482
  ...iconPackageNames,
483
483
  ...usersPackages,
484
- ...pluginPackages.map(({ packages }) => packages.join(' ')),
484
+ ...pluginPackages.reduce((acc, { packages }) => {
485
+ acc.push(...packages);
486
+ return acc;
487
+ }, []),
485
488
  ];
486
489
  const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
487
490
  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
+ return !EXCLUDE_PACKS.some((exclude) => pack.startsWith(exclude));
491
492
  });
492
493
  const allPacksUnique = Array.from(new Set(allPacksFiltered));
493
494
  if (allPacks.length) {
@@ -555,14 +555,15 @@ class CodeInjector implements ICodeInjector {
555
555
  const allPacks = [
556
556
  ...iconPackageNames,
557
557
  ...usersPackages,
558
- ...pluginPackages.map(({ packages }) => packages.join(' ')),
558
+ ...pluginPackages.reduce((acc, { packages }) => {
559
+ acc.push(...packages);
560
+ return acc;
561
+ }, []),
559
562
  ];
560
563
  const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
561
564
 
562
565
  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
+ return !EXCLUDE_PACKS.some((exclude) => pack.startsWith(exclude));
566
567
  })
567
568
  const allPacksUnique = Array.from(new Set(allPacksFiltered));
568
569
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.3.54-next.12",
3
+ "version": "1.3.54-next.14",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "build": "tsc",
10
10
  "---prepareDist": "cp -rL spa dist/",
11
11
  "rollout": "tsc && npm version patch && npm publish && npm run rollout-doc",
12
- "rollout-next": "tsc && npm version prerelease --preid=next && npm publish --tag next",
12
+ "rollout-next": "tsc && npm version prerelease --preid=next && npm publish --tag next && git tag -a v$(node -p \"require('./package.json').version\") -m \"v$(node -p \"require('./package.json').version\")\"",
13
13
  "rollout-doc": "cd documentation && npm run build && npm run deploy",
14
14
  "docs": "typedoc",
15
15
  "postinstall": "cd ./spa/src/ && test ! -d ./types && ln -sf ../../types ./types || echo 'types linked'"