@package-pal/cli 0.0.12 → 0.0.13

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.12",
3
+ "version": "0.0.13",
4
4
  "description": "CLI tool exposing core PackagePal functionality.",
5
5
  "keywords": [
6
6
  "package",
@@ -19,7 +19,7 @@ export const getPathInfo = (platform, targetPackage) => {
19
19
  }
20
20
 
21
21
  const packageRootDir = resolve(
22
- __dirname, '..', '..', '..',
22
+ __dirname, '..', '..', '..', '..',
23
23
  );
24
24
  const outputBinDir = join(packageRootDir, 'bin');
25
25
  const outputBinTargetBasePath = join(outputBinDir, binName);
@@ -38,7 +38,8 @@ export const linkExistingBinary = (
38
38
  console.info(`Successfully linked binary: '${outputBinTargetBasePath}' → '${targetBinPath}'.`);
39
39
 
40
40
  if (isWin) {
41
- console.info('Creating cmd shim.');
42
- writeFileSync(`${outputBinTargetBasePath}.cmd`, `@echo off\r\n"%~dp0\\${binExecutableName}" %*\r\n`);
41
+ const shimPath = `${outputBinTargetBasePath}.cmd`;
42
+ console.info(`Creating cmd shim '${shimPath}'.`);
43
+ writeFileSync(shimPath, `@echo off\r\n"%~dp0\\${binExecutableName}" %*\r\n`);
43
44
  }
44
45
  };