@hed-hog/cli 0.0.91 → 0.0.93
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/dist/package.json +1 -1
- package/dist/src/modules/developer/developer.service.d.ts +1 -0
- package/dist/src/modules/developer/developer.service.js +10 -3
- package/dist/src/modules/developer/developer.service.js.map +1 -1
- package/dist/src/modules/hedhog/hedhog.service.d.ts +1 -0
- package/dist/src/modules/hedhog/hedhog.service.js +8 -1
- package/dist/src/modules/hedhog/hedhog.service.js.map +1 -1
- package/dist/src/modules/hedhog/services/migration.service.d.ts +4 -0
- package/dist/src/modules/hedhog/services/migration.service.js +101 -51
- package/dist/src/modules/hedhog/services/migration.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export declare class DeveloperService {
|
|
|
14
14
|
private readonly hedHogService;
|
|
15
15
|
private verbose;
|
|
16
16
|
private readonly processedSharedWidgets;
|
|
17
|
+
private readonly sharedWidgetsPathSegments;
|
|
17
18
|
private readonly bootstrapIgnoredEntries;
|
|
18
19
|
constructor(runner: RunnerService, fileSystem: FileSystemService, database: DatabaseService, hedHogService: HedHogService);
|
|
19
20
|
log(...args: any[]): void;
|
|
@@ -36,6 +36,13 @@ let DeveloperService = class DeveloperService {
|
|
|
36
36
|
hedHogService;
|
|
37
37
|
verbose = false;
|
|
38
38
|
processedSharedWidgets = new Set();
|
|
39
|
+
sharedWidgetsPathSegments = [
|
|
40
|
+
'apps',
|
|
41
|
+
'admin',
|
|
42
|
+
'src',
|
|
43
|
+
'components',
|
|
44
|
+
'widgets',
|
|
45
|
+
];
|
|
39
46
|
bootstrapIgnoredEntries = new Set([
|
|
40
47
|
'.git',
|
|
41
48
|
'node_modules',
|
|
@@ -2741,7 +2748,7 @@ temp
|
|
|
2741
2748
|
await this.fileSystem.remove(frontendPublicLibrariesPath);
|
|
2742
2749
|
this.log(chalk.blue(`Removed directory: ${frontendPublicLibrariesPath}`));
|
|
2743
2750
|
}
|
|
2744
|
-
const frontendWidgetsPath = pathModule.join(cwd,
|
|
2751
|
+
const frontendWidgetsPath = pathModule.join(cwd, ...this.sharedWidgetsPathSegments);
|
|
2745
2752
|
if ((0, fs_1.existsSync)(frontendWidgetsPath)) {
|
|
2746
2753
|
await this.fileSystem.remove(frontendWidgetsPath);
|
|
2747
2754
|
this.log(chalk.blue(`Removed directory: ${frontendWidgetsPath}`));
|
|
@@ -3462,8 +3469,8 @@ temp
|
|
|
3462
3469
|
else {
|
|
3463
3470
|
this.log(chalk.yellow(`Frontend public assets folder not found at ${publicSourcePath}`));
|
|
3464
3471
|
}
|
|
3465
|
-
// Copy shared
|
|
3466
|
-
const widgetsSourcePath = pathModule.join(cwd,
|
|
3472
|
+
// Copy shared widgets back into the correct library by filename prefix
|
|
3473
|
+
const widgetsSourcePath = pathModule.join(cwd, ...this.sharedWidgetsPathSegments);
|
|
3467
3474
|
const librariesRootPath = pathModule.join(cwd, 'libraries');
|
|
3468
3475
|
if (await this.fileSystem.exists(widgetsSourcePath)) {
|
|
3469
3476
|
if (!this.processedSharedWidgets.has(widgetsSourcePath)) {
|