mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
31 lines
576 B
YAML
31 lines
576 B
YAML
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'
|
|
|
|
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
|