pantry/projects/npmjs.com/package.yml

26 lines
444 B
YAML
Raw Normal View History

2022-10-27 05:41:27 +03:00
distributable:
url: https://github.com/npm/cli/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: npm/cli
provides:
- bin/npm
- bin/npx
dependencies:
nodejs.org: '>=14'
2022-10-27 05:41:27 +03:00
build:
dependencies:
crates.io/semverator: '*'
2022-10-27 05:41:27 +03:00
script: |
if semverator satisfies '^8' {{ version }}; then
ARGS="--install-links"
fi
node . install --global --prefix={{prefix}} $ARGS
test:
npx -q tldr ls