adminforth 1.11.5-next.12 → 1.11.5-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.
@@ -58,6 +58,7 @@ async function generateModels() {
58
58
 
59
59
  fs.writeFileSync(modelFilePath, modelContent, "utf-8");
60
60
  console.log(`Generated TypeScript model file: ${modelFilePath}`);
61
+ return true;
61
62
  }
62
63
 
63
64
  export default generateModels;
package/commands/utils.js CHANGED
@@ -86,8 +86,7 @@ function processJsFilesInDir(directory) {
86
86
  fileContent = fileContent.replace(
87
87
  /import (.+?) from ["'](.+?)\/index\.js["'];/g,
88
88
  (match, imports, modulePath) => {
89
- // Check if the path is not relative (doesn't start with ./ or ../)
90
- if (!modulePath.startsWith("./") && !modulePath.startsWith("../")) {
89
+ if (!modulePath.startsWith(".") && !modulePath.startsWith("..")) {
91
90
  return `import ${imports} from "${modulePath}";`;
92
91
  }
93
92
  return match;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.11.5-next.12",
3
+ "version": "1.11.5-next.14",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",