ic-mops 0.3.4 → 0.3.5
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/cli.js +1 -1
- package/commands/add.js +5 -1
- package/declarations/main/main.did.d.ts +3 -3
- package/package.json +1 -1
package/cli.js
CHANGED
package/commands/add.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import logUpdate from 'log-update';
|
|
3
|
-
import {getHighestVersion, parseGithubURL, readConfig, writeConfig} from '../mops.js';
|
|
3
|
+
import {checkConfigFile, getHighestVersion, parseGithubURL, readConfig, writeConfig} from '../mops.js';
|
|
4
4
|
import {installFromGithub} from '../vessel.js';
|
|
5
5
|
import {install} from './install.js';
|
|
6
6
|
|
|
7
7
|
export async function add(pkg, {verbose, silent} = {}) {
|
|
8
|
+
if (!checkConfigFile()) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
let config = readConfig();
|
|
9
13
|
if (!config.dependencies) {
|
|
10
14
|
config.dependencies = {};
|
|
@@ -88,7 +88,7 @@ export interface _SERVICE {
|
|
|
88
88
|
'getApiVersion' : ActorMethod<[], Text>,
|
|
89
89
|
'getDefaultPackages' : ActorMethod<
|
|
90
90
|
[string],
|
|
91
|
-
Array<[PackageName__1, Version]
|
|
91
|
+
Array<[PackageName__1, Version]>
|
|
92
92
|
>,
|
|
93
93
|
'getFileIds' : ActorMethod<[PackageName__1, Ver], Result_5>,
|
|
94
94
|
'getHighestVersion' : ActorMethod<[PackageName__1], Result_4>,
|
|
@@ -102,11 +102,11 @@ export interface _SERVICE {
|
|
|
102
102
|
'search' : ActorMethod<[Text], Array<PackageDetails>>,
|
|
103
103
|
'startFileUpload' : ActorMethod<
|
|
104
104
|
[PublishingId, Text, bigint, Uint8Array],
|
|
105
|
-
Result_2
|
|
105
|
+
Result_2
|
|
106
106
|
>,
|
|
107
107
|
'startPublish' : ActorMethod<[PackageConfigV2], Result_1>,
|
|
108
108
|
'uploadFileChunk' : ActorMethod<
|
|
109
109
|
[PublishingId, FileId, bigint, Uint8Array],
|
|
110
|
-
Result
|
|
110
|
+
Result
|
|
111
111
|
>,
|
|
112
112
|
}
|