@hed-hog/cli 0.0.92 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/cli",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "description": "HedHog CLI tool",
5
5
  "author": "HedHog",
6
6
  "private": false,
@@ -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, 'apps', 'admin', 'src', 'app', '(app)', '(libraries)', 'core', 'dashboard', 'components', 'widgets');
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 dashboard widgets back into the correct library by filename prefix
3466
- const widgetsSourcePath = pathModule.join(cwd, 'apps', 'admin', 'src', 'app', '(app)', '(libraries)', 'core', 'dashboard', 'components', 'widgets');
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)) {