ic-mops 0.39.0 → 0.39.2
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.
|
@@ -11,15 +11,16 @@ export async function installLocal(pkg: string, pkgPath = '', {verbose = false,
|
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
if (!silent) {
|
|
15
|
+
let logUpdate = createLogUpdate(process.stdout, {showCursor: true});
|
|
16
|
+
logUpdate(`Local dependency ${pkg} = "${pkgPath}"`);
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logUpdate.clear();
|
|
18
|
+
if (verbose) {
|
|
19
|
+
silent || logUpdate.done();
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
logUpdate.clear();
|
|
23
|
+
}
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
// install dependencies
|
package/commands/sources.ts
CHANGED
|
@@ -40,7 +40,7 @@ export async function sources({verbose = false, cwd = process.cwd()} = {}) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// use pkgDir if baseDir doesn't exist for local packages
|
|
43
|
-
if (depType === 'local' && !fs.existsSync(pkgBaseDir)) {
|
|
43
|
+
if (depType === 'local' && !fs.existsSync(path.resolve(cwd, pkgBaseDir))) {
|
|
44
44
|
pkgBaseDir = pkgDir;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -9,13 +9,15 @@ export async function installLocal(pkg, pkgPath = '', { verbose = false, silent
|
|
|
9
9
|
if (!checkConfigFile()) {
|
|
10
10
|
return false;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (!silent) {
|
|
13
|
+
let logUpdate = createLogUpdate(process.stdout, { showCursor: true });
|
|
14
|
+
logUpdate(`Local dependency ${pkg} = "${pkgPath}"`);
|
|
15
|
+
if (verbose) {
|
|
16
|
+
silent || logUpdate.done();
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
logUpdate.clear();
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
// install dependencies
|
|
21
23
|
let ok = true;
|
package/dist/commands/sources.js
CHANGED
|
@@ -34,7 +34,7 @@ export async function sources({ verbose = false, cwd = process.cwd() } = {}) {
|
|
|
34
34
|
pkgBaseDir = path.join(pkgDir, 'src');
|
|
35
35
|
}
|
|
36
36
|
// use pkgDir if baseDir doesn't exist for local packages
|
|
37
|
-
if (depType === 'local' && !fs.existsSync(pkgBaseDir)) {
|
|
37
|
+
if (depType === 'local' && !fs.existsSync(path.resolve(cwd, pkgBaseDir))) {
|
|
38
38
|
pkgBaseDir = pkgDir;
|
|
39
39
|
}
|
|
40
40
|
return `--package ${name} ${pkgBaseDir}`;
|
package/dist/package.json
CHANGED