pantry/projects/npmjs.com/package.yml
Jacob Heider 409402efd4
fix(npm)
2023-04-16 02:15:35 -04:00

32 lines
581 B
YAML

distributable:
url: https://github.com/npm/cli/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: npm/cli/tags
provides:
- bin/npm
- bin/npx
dependencies:
nodejs.org: '>=14'
build:
dependencies:
crates.io/semverator: '*'
script: |
if semverator satisfies '^8,>=9.4.2' {{ version }}; then
ARGS="--install-links"
fi
node . install --global --prefix={{prefix}} $ARGS
mv props/npmrc {{prefix}}/lib/node_modules/npm
test: |
npm install --global cowsay
$HOME/.local/bin/cowsay xyz.tea.hi
npx -qy tldr ls