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.
@@ -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) => (c.id === '.' ? { ...c, id: '' } : 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);
@@ -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.0"
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.0",
4
+ "version": "4.5.2",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"