ports/devel/yarn/patches/patch-lib_cli_js

21 lines
902 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
node doesn't know where it is relative to itself when called without the full
path.
Index: lib/cli.js
--- lib/cli.js.orig
+++ lib/cli.js
@@ -34038,11 +34038,11 @@ var getWrappersFolder = exports.getWrappersFolder = fu
wrappersFolder = yield (_fs || _load_fs()).makeTempDir();
- yield (0, (_portableScript || _load_portableScript()).makePortableProxyScript)(process.execPath, wrappersFolder, {
+ yield (0, (_portableScript || _load_portableScript()).makePortableProxyScript)('${LOCALBASE}/bin/node', wrappersFolder, {
proxyBasename: 'node'
});
- yield (0, (_portableScript || _load_portableScript()).makePortableProxyScript)(process.execPath, wrappersFolder, {
+ yield (0, (_portableScript || _load_portableScript()).makePortableProxyScript)('${LOCALBASE}/bin/node', wrappersFolder, {
proxyBasename: 'yarn',
prependArguments: [process.argv[1]]
});