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