@cabloy/cli 3.0.6 → 3.0.8

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/lib/cli.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare class CliCommand extends BaseCommand {
28
28
  key: any;
29
29
  context: any;
30
30
  propName: any;
31
- }): ((value: any) => any) | null;
31
+ }): ((value: any) => unknown) | null;
32
32
  _prepareQuestion({ group, question, key, context }: {
33
33
  group: any;
34
34
  question: any;
@@ -38,5 +38,5 @@ export declare class CliCommand extends BaseCommand {
38
38
  _checkGroupCondition({ group, context }: {
39
39
  group: any;
40
40
  context: any;
41
- }): any;
41
+ }): unknown;
42
42
  }
@@ -216,11 +216,7 @@ export class LocalTemplate {
216
216
  }
217
217
  }
218
218
  async _loadSnippetInstance(snippetTemplatePath, fn) {
219
- if (snippetTemplatePath.endsWith('.cjs')) {
220
- const instance = this.helper.requireDynamic(snippetTemplatePath);
221
- await fn(instance);
222
- }
223
- await this.helper.importDynamic(snippetTemplatePath, instance => {
219
+ return await this.helper.importDynamic(snippetTemplatePath, instance => {
224
220
  return fn(instance.default);
225
221
  });
226
222
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
3
  "type": "module",
4
- "version": "3.0.6",
4
+ "version": "3.0.8",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -46,7 +46,7 @@
46
46
  "@cabloy/module-glob": "^5.2.0",
47
47
  "@cabloy/module-info": "^1.3.1",
48
48
  "@cabloy/process-helper": "^2.0.3",
49
- "@cabloy/utils": "^1.0.3"
49
+ "@cabloy/utils": "^1.0.6"
50
50
  },
51
51
  "gitHead": "2d40c063c115b230fdbc89f5a78b4412ebd0dfc9"
52
52
  }