diff --git a/projects/npmjs.com/package.yml b/projects/npmjs.com/package.yml index 4a2ecd65..6d0038cc 100644 --- a/projects/npmjs.com/package.yml +++ b/projects/npmjs.com/package.yml @@ -13,11 +13,14 @@ dependencies: nodejs.org: '>=14' build: - script: - node . install --global --prefix={{prefix}} + dependencies: + crates.io/semverator: '*' + script: | + if semverator satisfies '^8' {{ version }}; then + ARGS="--install-links" + fi + + node . install --global --prefix={{prefix}} $ARGS test: - dependencies: - git-scm.org: '*' # `npm doctor` checks for, but doesn't use, `git` - script: | - npx -q tldr ls \ No newline at end of file + npx -q tldr ls \ No newline at end of file