adminforth 1.0.16 → 1.0.17

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.
@@ -132,7 +132,7 @@ class CodeInjector {
132
132
 
133
133
  // copy whole custom directory
134
134
  if (this.adminforth.config.customization?.customComponentsDir) {
135
- await fsExtra.copy(this.adminforth.config.customization.customComponentsDir, path.join(spaTmpPath, 'src', 'custom'), {
135
+ await fsExtra.copy(this.adminforth.config.customization.customComponentsDir, path.join(CodeInjector.SPA_TMP_PATH, 'src', 'custom'), {
136
136
  recursive: true,
137
137
  });
138
138
  }
@@ -246,7 +246,7 @@ class CodeInjector {
246
246
 
247
247
  }
248
248
 
249
- async watchForReprepare({ verbose }) {
249
+ async watchForReprepare({ verbose }) {
250
250
  const spaPath = path.join(__dirname, 'spa');
251
251
  // get list of all subdirectories in spa recursively
252
252
  const directories = [];
@@ -328,7 +328,7 @@ class CodeInjector {
328
328
  if (verbose) {
329
329
  console.log(`🔎 File ${file} changed, copying to spa_tmp...`);
330
330
  }
331
- await fsExtra.copy(this.adminforth.config.customization.customComponentsDir, path.join(spaTmpPath, 'src', 'custom'), {
331
+ await fsExtra.copy(this.adminforth.config.customization.customComponentsDir, path.join(CodeInjector.SPA_TMP_PATH, 'src', 'custom'), {
332
332
  recursive: true,
333
333
  });
334
334
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "index.js",
6
6
  "scripts": {