@cabloy/cli 3.1.8 → 3.1.10
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/index.js +7 -3
- package/dist/lib/local.helper.d.ts +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -154,7 +154,9 @@ class LocalCommon {
|
|
|
154
154
|
// all modules: type file
|
|
155
155
|
const promises = [];
|
|
156
156
|
for (const module of this.cli.modulesMeta.modulesArray) {
|
|
157
|
-
if (module.info.node_modules && !fse.existsSync(path.join(module.root, 'src/.metadata')))
|
|
157
|
+
if (module.info.node_modules && !fse.existsSync(path.join(module.root, 'src/.metadata'))) {
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
158
160
|
const moduleTypeFile = path.join(module.root, 'src/.metadata/modules.d.ts');
|
|
159
161
|
promises.push(this._generateTypeModulesFileInner(typeFile, typeFileStat, moduleTypeFile));
|
|
160
162
|
}
|
|
@@ -177,7 +179,7 @@ class LocalCommon {
|
|
|
177
179
|
needCreate = false;
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
|
-
} catch
|
|
182
|
+
} catch {}
|
|
181
183
|
}
|
|
182
184
|
if (needCreate) {
|
|
183
185
|
await fse.remove(moduleTypeFile);
|
|
@@ -1291,7 +1293,9 @@ class BeanCli {
|
|
|
1291
1293
|
cliFullName
|
|
1292
1294
|
}) {
|
|
1293
1295
|
const commandInfo = findCommand(cliFullName);
|
|
1294
|
-
if (!commandInfo || !commandInfo.command)
|
|
1296
|
+
if (!commandInfo || !commandInfo.command) {
|
|
1297
|
+
throw new Error(`cli command not found: ${cliFullName}`);
|
|
1298
|
+
}
|
|
1295
1299
|
return commandInfo;
|
|
1296
1300
|
}
|
|
1297
1301
|
}
|
|
@@ -88,22 +88,22 @@ export declare class LocalHelper {
|
|
|
88
88
|
fileName: string;
|
|
89
89
|
logPrefix?: string;
|
|
90
90
|
}): Promise<void>;
|
|
91
|
-
spawnBin({ cmd, args, options }: {
|
|
91
|
+
spawnBin({ cmd, args, options, }: {
|
|
92
92
|
cmd: string;
|
|
93
93
|
args?: string[];
|
|
94
94
|
options?: IProcessHelperSpawnOptions;
|
|
95
95
|
}): Promise<string>;
|
|
96
|
-
spawnCmd({ cmd, args, options }: {
|
|
96
|
+
spawnCmd({ cmd, args, options, }: {
|
|
97
97
|
cmd: string;
|
|
98
98
|
args?: string[];
|
|
99
99
|
options?: IProcessHelperSpawnOptions;
|
|
100
100
|
}): Promise<string>;
|
|
101
|
-
spawnExe({ cmd, args, options }: {
|
|
101
|
+
spawnExe({ cmd, args, options, }: {
|
|
102
102
|
cmd: string;
|
|
103
103
|
args?: string[];
|
|
104
104
|
options?: IProcessHelperSpawnOptions;
|
|
105
105
|
}): Promise<string>;
|
|
106
|
-
spawn({ cmd, args, options }: {
|
|
106
|
+
spawn({ cmd, args, options, }: {
|
|
107
107
|
cmd: string;
|
|
108
108
|
args?: string[];
|
|
109
109
|
options?: IProcessHelperSpawnOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.10",
|
|
4
4
|
"gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
|
|
5
5
|
"description": "@cabloy/cli",
|
|
6
6
|
"keywords": [
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"semver": "^7.7.4",
|
|
47
47
|
"tmp": "^0.2.5",
|
|
48
48
|
"urllib": "^3.27.3",
|
|
49
|
-
"@cabloy/module-glob": "^5.3.
|
|
50
|
-
"@cabloy/process-helper": "^3.1.
|
|
51
|
-
"@cabloy/utils": "^2.1.
|
|
49
|
+
"@cabloy/module-glob": "^5.3.8",
|
|
50
|
+
"@cabloy/process-helper": "^3.1.5",
|
|
51
|
+
"@cabloy/utils": "^2.1.17"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|