ic-mops 0.12.3 → 0.12.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vessel.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "cli.js"
package/vessel.js CHANGED
@@ -95,8 +95,8 @@ export const downloadFromGithub = async (repo, dest, onProgress = null) => {
95
95
 
96
96
  // Prevent `onError` being called twice.
97
97
  readStream.off('error', reject);
98
- const tmpDir = process.cwd() + '/.mops/_tmp/';
99
- const tmpFile = tmpDir + `/${gitName}@${branch}.zip`;
98
+ const tmpDir = path.resolve(process.cwd(), '.mops/_tmp/');
99
+ const tmpFile = path.resolve(tmpDir, `${gitName}@${branch}.zip`);
100
100
 
101
101
  try {
102
102
  mkdirSync(tmpDir, {recursive: true});