@cabloy/cli 3.0.6 → 3.0.7
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 +2 -2
- package/dist/lib/local.template.js +2 -2
- package/package.json +3 -3
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) =>
|
|
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
|
-
}):
|
|
41
|
+
}): unknown;
|
|
42
42
|
}
|
|
@@ -218,9 +218,9 @@ export class LocalTemplate {
|
|
|
218
218
|
async _loadSnippetInstance(snippetTemplatePath, fn) {
|
|
219
219
|
if (snippetTemplatePath.endsWith('.cjs')) {
|
|
220
220
|
const instance = this.helper.requireDynamic(snippetTemplatePath);
|
|
221
|
-
await fn(instance);
|
|
221
|
+
return await fn(instance);
|
|
222
222
|
}
|
|
223
|
-
await this.helper.importDynamic(snippetTemplatePath, instance => {
|
|
223
|
+
return await this.helper.importDynamic(snippetTemplatePath, instance => {
|
|
224
224
|
return fn(instance.default);
|
|
225
225
|
});
|
|
226
226
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.7",
|
|
5
5
|
"description": "@cabloy/cli",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"semver": "^7.6.2",
|
|
44
44
|
"tmp": "^0.2.3",
|
|
45
45
|
"urllib": "^3.24.0",
|
|
46
|
-
"@cabloy/module-glob": "^5.2.0",
|
|
47
46
|
"@cabloy/module-info": "^1.3.1",
|
|
47
|
+
"@cabloy/module-glob": "^5.2.0",
|
|
48
48
|
"@cabloy/process-helper": "^2.0.3",
|
|
49
|
-
"@cabloy/utils": "^1.0.
|
|
49
|
+
"@cabloy/utils": "^1.0.6"
|
|
50
50
|
},
|
|
51
51
|
"gitHead": "2d40c063c115b230fdbc89f5a78b4412ebd0dfc9"
|
|
52
52
|
}
|