oclif 4.16.4 → 4.17.0

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.
@@ -53,8 +53,6 @@ Add a pretarball script to your package.json if you need to run any scripts befo
53
53
  };
54
54
  static summary = 'Package oclif CLI into tarballs.';
55
55
  async run() {
56
- if (process.platform === 'win32')
57
- throw new Error('pack does not function on windows');
58
56
  const { flags } = await this.parse(PackTarballs);
59
57
  const buildConfig = await Tarballs.buildConfig(flags.root, { targets: flags?.targets?.split(','), xz: flags.xz });
60
58
  if (buildConfig.targets.length === 0) {
@@ -62,6 +60,7 @@ Add a pretarball script to your package.json if you need to run any scripts befo
62
60
  }
63
61
  await Tarballs.build(buildConfig, {
64
62
  parallel: flags.parallel,
63
+ ...(process.platform === 'win32' ? { platform: 'win32' } : {}),
65
64
  pruneLockfiles: flags['prune-lockfiles'],
66
65
  tarball: flags.tarball,
67
66
  });
@@ -57,8 +57,8 @@ const pack = async (from, to) => {
57
57
  await (0, promises_1.mkdir)(path.dirname(to), { recursive: true });
58
58
  (0, log_1.log)(`packing tarball from ${(0, util_1.prettifyPaths)(path.dirname(from))} to ${(0, util_1.prettifyPaths)(to)}`);
59
59
  to.endsWith('gz')
60
- ? await exec(`tar czf ${to} ${path.basename(from)}`, { cwd })
61
- : await exec(`tar cfJ ${to} ${path.basename(from)}`, { cwd });
60
+ ? await exec(`tar czf ${to} ${path.basename(from)}${process.platform === 'win32' ? ' --force-local' : ''}`, { cwd })
61
+ : await exec(`tar cfJ ${to} ${path.basename(from)}${process.platform === 'win32' ? ' --force-local' : ''}`, { cwd });
62
62
  };
63
63
  const isYarnProject = (yarnRootPath) => {
64
64
  const yarnLockFileName = 'yarn.lock';
@@ -1131,5 +1131,5 @@
1131
1131
  ]
1132
1132
  }
1133
1133
  },
1134
- "version": "4.16.4"
1134
+ "version": "4.17.0"
1135
1135
  }
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.16.4",
4
+ "version": "4.17.0",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"
@@ -9,7 +9,7 @@
9
9
  "bugs": "https://github.com/oclif/oclif/issues",
10
10
  "dependencies": {
11
11
  "@aws-sdk/client-cloudfront": "^3.699.0",
12
- "@aws-sdk/client-s3": "^3.705.0",
12
+ "@aws-sdk/client-s3": "^3.712.0",
13
13
  "@inquirer/confirm": "^3.1.22",
14
14
  "@inquirer/input": "^2.2.4",
15
15
  "@inquirer/select": "^2.5.0",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@commitlint/config-conventional": "^19",
38
- "@oclif/plugin-legacy": "^2.0.13",
38
+ "@oclif/plugin-legacy": "^2.0.19",
39
39
  "@oclif/prettier-config": "^0.2.1",
40
40
  "@oclif/test": "^4",
41
41
  "@types/async-retry": "^1.4.5",