adminforth 1.11.5-next.11 → 1.11.5-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/commands/utils.js CHANGED
@@ -82,11 +82,15 @@ function processJsFilesInDir(directory) {
82
82
  }
83
83
  );
84
84
 
85
- // Remove /index.js from imports
85
+ // Remove /index.js from imports only if it's not a relative path
86
86
  fileContent = fileContent.replace(
87
87
  /import (.+?) from ["'](.+?)\/index\.js["'];/g,
88
88
  (match, imports, modulePath) => {
89
- return `import ${imports} from "${modulePath}";`;
89
+ // Check if the path is not relative (doesn't start with ./ or ../)
90
+ if (!modulePath.startsWith("./") && !modulePath.startsWith("../")) {
91
+ return `import ${imports} from "${modulePath}";`;
92
+ }
93
+ return match;
90
94
  }
91
95
  );
92
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.11.5-next.11",
3
+ "version": "1.11.5-next.12",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",