ic-mops 0.25.0 → 0.25.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.
@@ -2,5 +2,5 @@ import child_process from 'node:child_process';
2
2
 
3
3
  export function selfUpdate({detached = false} = {}) {
4
4
  console.log('Updating mops CLI...');
5
- child_process.spawn('npm i ic-mops -g', {stdio: 'inherit', detached});
5
+ child_process.spawn('npm', ['install', 'ic-mops', '-g'], {stdio: 'inherit', detached});
6
6
  }
@@ -16,7 +16,8 @@ export async function update(pkg?: string) {
16
16
  }
17
17
  else {
18
18
  for (let dep of available) {
19
- await add(`${dep[0]}@${dep[2]}`);
19
+ let dev = !!config['dev-dependencies']?.[dep[0]];
20
+ await add(`${dep[0]}@${dep[2]}`, {dev});
20
21
  }
21
22
  }
22
23
  }
@@ -1,5 +1,5 @@
1
1
  import child_process from 'node:child_process';
2
2
  export function selfUpdate({ detached = false } = {}) {
3
3
  console.log('Updating mops CLI...');
4
- child_process.spawn('npm i ic-mops -g', { stdio: 'inherit', detached });
4
+ child_process.spawn('npm', ['install', 'ic-mops', '-g'], { stdio: 'inherit', detached });
5
5
  }
@@ -13,7 +13,8 @@ export async function update(pkg) {
13
13
  }
14
14
  else {
15
15
  for (let dep of available) {
16
- await add(`${dep[0]}@${dep[2]}`);
16
+ let dev = !!config['dev-dependencies']?.[dep[0]];
17
+ await add(`${dep[0]}@${dep[2]}`, { dev });
17
18
  }
18
19
  }
19
20
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/cli.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/cli.js"