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.
- package/modules/codeInjector.js +3 -3
- package/package.json +1 -1
package/modules/codeInjector.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
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(
|
|
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
|
}
|