2023-06-23 15:25:45 +03:00
|
|
|
distributable:
|
2023-07-18 23:29:07 +03:00
|
|
|
url: https://github.com/antfu/ni/archive/refs/tags/v{{version}}.tar.gz
|
2023-06-23 15:25:45 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: antfu/ni
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
nodejs.org: '>=14'
|
2023-11-10 00:19:40 +03:00
|
|
|
npmjs.com: '*'
|
2023-06-23 15:25:45 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
script:
|
|
|
|
- npm install --include=dev
|
|
|
|
- npm run build
|
|
|
|
- npm install .
|
|
|
|
--global
|
|
|
|
--prefix={{prefix}}
|
|
|
|
--install-links
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/na
|
|
|
|
- bin/nci
|
|
|
|
- bin/ni
|
|
|
|
- bin/nlx
|
|
|
|
- bin/nr
|
|
|
|
- bin/nu
|
|
|
|
- bin/nun
|
|
|
|
|
|
|
|
test:
|
2023-11-10 00:26:51 +03:00
|
|
|
# or errors
|
|
|
|
- run: touch .nirc
|
2023-11-10 00:29:54 +03:00
|
|
|
if: '>=0.21.9'
|
2023-11-10 00:19:40 +03:00
|
|
|
- ni --version | grep {{version}}
|