oclif 4.5.1 → 4.5.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.
@@ -95,7 +95,10 @@ async function build(c, options = {}) {
95
95
  await (0, fs_extra_1.emptyDir)(c.workspace());
96
96
  const tarballNewLocation = path.join(c.workspace(), path.basename(tarball));
97
97
  await (0, fs_extra_1.move)(tarball, tarballNewLocation);
98
- await exec(`tar -xzf "${tarballNewLocation}"`, { cwd: c.workspace() });
98
+ let tarCommand = `tar -xzf "${tarballNewLocation}"`;
99
+ if (process.platform === 'win32')
100
+ tarCommand += ' --force-local';
101
+ await exec(tarCommand, { cwd: c.workspace() });
99
102
  const files = await (0, promises_1.readdir)(path.join(c.workspace(), 'package'), { withFileTypes: true });
100
103
  await Promise.all(files.map((i) => (0, fs_extra_1.move)(path.join(c.workspace(), 'package', i.name), path.join(c.workspace(), i.name))));
101
104
  await Promise.all([
@@ -757,5 +757,5 @@
757
757
  ]
758
758
  }
759
759
  },
760
- "version": "4.5.1"
760
+ "version": "4.5.2"
761
761
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "4.5.1",
4
+ "version": "4.5.2",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"