From f5975d8d79286a01c55eecbfd521882e209bec97 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 3 Feb 2023 19:34:11 -0500 Subject: [PATCH] fix(npm) (#174) * npm^8 installs symlinks unless told not to * see if node^19.5 is the problem * final version --- projects/npmjs.com/package.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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