From b5f4aa1b4cff255f0695676851db33e26f143726 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 22 Nov 2023 07:05:52 -0500 Subject: [PATCH] npx; Fixes #4160 (#4162) --- projects/npmjs.com/npx-shim | 4 ++-- projects/npmjs.com/package.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/npmjs.com/npx-shim b/projects/npmjs.com/npx-shim index 7a66d8cc..7df653a7 100755 --- a/projects/npmjs.com/npx-shim +++ b/projects/npmjs.com/npx-shim @@ -4,7 +4,7 @@ # FIXME a patch to npm here then upstream would be preferable mkdir -p ~/.local/lib -d="$(cd "$(dirname $0)" && pwd)" -"$d"/npm exec "$@" +d="$(cd "$(dirname $0)"/.. && pwd)" +exec "$d"/lib/node_modules/npm/bin/npx-cli.js "$@" # ※ https://github.com/teaxyz/cli/issues/532 diff --git a/projects/npmjs.com/package.yml b/projects/npmjs.com/package.yml index a50c0cc6..f172cc0f 100644 --- a/projects/npmjs.com/package.yml +++ b/projects/npmjs.com/package.yml @@ -43,6 +43,7 @@ build: - run: | rm npx mv $SRCROOT/props/npx-shim npx + working-directory: ${{prefix}}/bin