@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
|
@@ -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
|
-
|
|
42
|
-
|
|
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
|
};
|