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
- let logUpdate = createLogUpdate(process.stdout, {showCursor: true});
14
+ if (!silent) {
15
+ let logUpdate = createLogUpdate(process.stdout, {showCursor: true});
16
+ logUpdate(`Local dependency ${pkg} = "${pkgPath}"`);
15
17
 
16
- logUpdate(`Local dependency ${pkg} = "${pkgPath}"`);
17
-
18
- if (verbose) {
19
- silent || logUpdate.done();
20
- }
21
- else {
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
@@ -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
- let logUpdate = createLogUpdate(process.stdout, { showCursor: true });
13
- logUpdate(`Local dependency ${pkg} = "${pkgPath}"`);
14
- if (verbose) {
15
- silent || logUpdate.done();
16
- }
17
- else {
18
- logUpdate.clear();
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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.39.0",
3
+ "version": "0.39.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/bin/mops.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.39.0",
3
+ "version": "0.39.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/bin/mops.js",