oclif 4.5.0 → 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/commands/readme.js +1 -1
- package/lib/tarballs/build.js +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/commands/readme.js
CHANGED
|
@@ -222,7 +222,7 @@ Customize the code URL prefix by setting oclif.repositoryPrefix in package.json.
|
|
|
222
222
|
let commands = config.commands
|
|
223
223
|
.filter((c) => !c.hidden && c.pluginType === 'core')
|
|
224
224
|
.filter((c) => (this.flags.aliases ? true : !c.aliases.includes(c.id)))
|
|
225
|
-
.map((c) => (
|
|
225
|
+
.map((c) => (config.isSingleCommandCLI ? { ...c, id: '' } : c));
|
|
226
226
|
this.debug('commands:', commands.map((c) => c.id).length);
|
|
227
227
|
commands = (0, util_1.uniqBy)(commands, (c) => c.id);
|
|
228
228
|
commands = (0, util_1.sortBy)(commands, (c) => c.id);
|
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