pantry/projects/npmjs.com/package.yml

32 lines
581 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:
2023-04-16 09:15:35 +03:00
github: npm/cli/tags
2022-10-27 05:41:27 +03:00
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,>=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