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.
- package/lib/tarballs/build.js +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/tarballs/build.js
CHANGED
|
@@ -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
|
-
|
|
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([
|
package/oclif.manifest.json
CHANGED