ic-mops 1.1.1 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Mops CLI Changelog
2
2
 
3
+ ## 1.1.2
4
+ - Fixed `{MOPS_ENV}` substitution in local package path
5
+
3
6
  ## 1.1.1
4
7
  - `moc-wrapper` now adds hostname to the moc path cache(`.mops/moc-*` filename) to avoid errors when running in Dev Containers
5
8
  - `mops watch` now deploys canisters with the `--yes` flag to skip data loss confirmation
package/bundle/cli.tgz CHANGED
Binary file
@@ -27,7 +27,7 @@ export async function installLocalDep(pkg : string, pkgPath = '', {verbose, sile
27
27
 
28
28
  // install dependencies
29
29
  if (!ignoreTransitive) {
30
- let dir = path.resolve(getRootDir(), pkgPath);
30
+ let dir = path.resolve(getRootDir(), pkgPath).replaceAll('{MOPS_ENV}', process.env.MOPS_ENV || 'local');
31
31
  let config = readConfig(path.join(dir, 'mops.toml'));
32
32
  return installDeps(Object.values(config.dependencies || {}), {silent, verbose}, pkgPath);
33
33
  }
@@ -18,7 +18,7 @@ export async function installLocalDep(pkg, pkgPath = '', { verbose, silent, igno
18
18
  }
19
19
  // install dependencies
20
20
  if (!ignoreTransitive) {
21
- let dir = path.resolve(getRootDir(), pkgPath);
21
+ let dir = path.resolve(getRootDir(), pkgPath).replaceAll('{MOPS_ENV}', process.env.MOPS_ENV || 'local');
22
22
  let config = readConfig(path.join(dir, 'mops.toml'));
23
23
  return installDeps(Object.values(config.dependencies || {}), { silent, verbose }, pkgPath);
24
24
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/bin/mops.js",