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:
|
2022-10-31 20:25:32 +03:00
|
|
|
nodejs.org: '>=14'
|
2022-10-27 05:41:27 +03:00
|
|
|
|
2023-03-23 13:26:08 +03:00
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
NPM_CONFIG_UPDATE_NOTIFIER: false
|
|
|
|
|
2022-10-27 05:41:27 +03:00
|
|
|
build:
|
2022-11-17 02:01:43 +03:00
|
|
|
dependencies:
|
2023-02-04 03:34:11 +03:00
|
|
|
crates.io/semverator: '*'
|
2022-10-27 05:41:27 +03:00
|
|
|
script: |
|
2023-02-08 00:22:47 +03:00
|
|
|
if semverator satisfies '^8,>=9.4.2' {{ version }}; then
|
2023-02-04 03:34:11 +03:00
|
|
|
ARGS="--install-links"
|
|
|
|
fi
|
|
|
|
|
|
|
|
node . install --global --prefix={{prefix}} $ARGS
|
|
|
|
|
2023-02-08 00:22:47 +03:00
|
|
|
test: npx -q tldr ls
|