mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
31 lines
581 B
YAML
31 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
|