@package-pal/cli 0.0.16 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@package-pal/cli",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "CLI tool exposing core PackagePal functionality.",
5
5
  "keywords": [
6
6
  "package",
@@ -6,6 +6,8 @@ import { rmSync } from 'fs';
6
6
  export const clearPlaceholderBinary = ({
7
7
  platform, outputBinBasePath,
8
8
  }) => {
9
+ console.info(`Clearing '${outputBinBasePath}' files.`);
10
+
9
11
  rmSync(outputBinBasePath, { force: true });
10
12
 
11
13
  if (platform === 'win32') {
@@ -98,7 +98,7 @@ export const loadMissingBinary = async ({
98
98
  throw new Error(`No version found for target package '${fullTargetPackageName}'.`);
99
99
  }
100
100
 
101
- const tarballUrl = `https://registry.npmjs.org/${fullTargetPackageName}/-/${targetPackage}-${targetPackageVersion}.tgz`;
101
+ const tarballUrl = `https://registry.npmjs.org/${fullTargetPackageName}/-/bin/${targetPackage}-${targetPackageVersion}.tgz`;
102
102
  console.info(`Downloading '${fullTargetPackageName}' into '${outputBinDir}' from ${tarballUrl}...`);
103
103
 
104
104
  await downloadAndExtract(