adminforth 1.0.61 → 1.0.62

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.
@@ -214,6 +214,7 @@ class CodeInjector {
214
214
  const componentName = getComponentNameFromPath(filePath);
215
215
  this.allComponentNames[filePath] = componentName;
216
216
  });
217
+ console.log('🔧 Injecting code into Vue sources...', this.allComponentNames);
217
218
  let customComponentsImports = '';
218
219
  for (const [targetPath, component] of Object.entries(this.allComponentNames)) {
219
220
  customComponentsImports += `import ${component} from '${targetPath}';\n`;
@@ -26,5 +26,5 @@ export const ADMIN_FORTH_ABSOLUTE_PATH = path.join(currentFileDir(import.meta.ur
26
26
  const package_json = JSON.parse(fs.readFileSync(path.join(ADMIN_FORTH_ABSOLUTE_PATH, 'package.json'), 'utf8'));
27
27
  export const ADMINFORTH_VERSION = package_json.version;
28
28
  export function getComponentNameFromPath(filePath) {
29
- return filePath.replace(/@/g, '').replace(/.vue/g, '').replace(/\./g, '').replace(/\//g, '');
29
+ return filePath.replace(/@/g, '').replace(/\./g, '').replace(/\//g, '');
30
30
  }
@@ -238,6 +238,8 @@ class CodeInjector {
238
238
  const componentName = getComponentNameFromPath(filePath);
239
239
  this.allComponentNames[filePath] = componentName;
240
240
  });
241
+
242
+ console.log('🔧 Injecting code into Vue sources...', this.allComponentNames);
241
243
 
242
244
  let customComponentsImports = '';
243
245
  for (const [targetPath, component] of Object.entries(this.allComponentNames)) {
package/modules/utils.ts CHANGED
@@ -32,5 +32,5 @@ const package_json = JSON.parse(fs.readFileSync(path.join(ADMIN_FORTH_ABSOLUTE_P
32
32
  export const ADMINFORTH_VERSION: string = package_json.version;
33
33
 
34
34
  export function getComponentNameFromPath(filePath) {
35
- return filePath.replace(/@/g, '').replace(/.vue/g, '').replace(/\./g, '').replace(/\//g, '');
35
+ return filePath.replace(/@/g, '').replace(/\./g, '').replace(/\//g, '');
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",