ic-mops 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Mops CLI Changelog
2
2
 
3
+ ## 1.1.1
4
+ - `moc-wrapper` now adds hostname to the moc path cache(`.mops/moc-*` filename) to avoid errors when running in Dev Containers
5
+ - `mops watch` now deploys canisters with the `--yes` flag to skip data loss confirmation
6
+
3
7
  ## 1.1.0
4
8
  - New `mops watch` command to check for syntax errors, show warnings, run tests, generate declarations and deploy canisters ([docs](https://docs.mops.one/cli/mops-watch))
5
9
  - New flag `--no-toolchain` in `mops install` command to skip toolchain installation
@@ -22,7 +22,7 @@ else
22
22
  mopsTomlHash=$(shasum $mopsToml -a 256 | awk -F' ' '{print $1}')
23
23
  fi;
24
24
 
25
- cached="$rootDir/.mops/moc-$mopsTomlHash"
25
+ cached="$rootDir/.mops/moc-$(uname -n)-$mopsTomlHash"
26
26
 
27
27
  if [ -f $cached ]; then
28
28
  mocPath=$(cat $cached)
package/bundle/cli.tgz CHANGED
Binary file
@@ -113,7 +113,7 @@ export class Deployer {
113
113
  }
114
114
 
115
115
  // install
116
- await promisify(execFile)('dfx', ['canister', 'install', '--mode=auto', canister], {cwd: rootDir, signal}).catch((error) => {
116
+ await promisify(execFile)('dfx', ['canister', 'install', '--mode=auto', '--yes', canister], {cwd: rootDir, signal}).catch((error) => {
117
117
  if (error.code === 'ABORT_ERR') {
118
118
  return {stderr: ''};
119
119
  }
@@ -22,7 +22,7 @@ else
22
22
  mopsTomlHash=$(shasum $mopsToml -a 256 | awk -F' ' '{print $1}')
23
23
  fi;
24
24
 
25
- cached="$rootDir/.mops/moc-$mopsTomlHash"
25
+ cached="$rootDir/.mops/moc-$(uname -n)-$mopsTomlHash"
26
26
 
27
27
  if [ -f $cached ]; then
28
28
  mocPath=$(cat $cached)
@@ -89,7 +89,7 @@ export class Deployer {
89
89
  });
90
90
  }
91
91
  // install
92
- await promisify(execFile)('dfx', ['canister', 'install', '--mode=auto', canister], { cwd: rootDir, signal }).catch((error) => {
92
+ await promisify(execFile)('dfx', ['canister', 'install', '--mode=auto', '--yes', canister], { cwd: rootDir, signal }).catch((error) => {
93
93
  if (error.code === 'ABORT_ERR') {
94
94
  return { stderr: '' };
95
95
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "bin/mops.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/bin/mops.js",