Merge pull request #235606 from hercules-ci/netlify-cli-update-generate.sh

netlify-cli/generate.sh: Update nodejs version
This commit is contained in:
Lily Foster 2023-06-02 17:26:31 -04:00 committed by GitHub
commit 69c2c5bd99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -10,5 +10,5 @@ node2nix \
--output node-packages.nix \
--composition composition.nix \
--node-env node-env.nix \
--nodejs-16 \
--nodejs-18 \
;

View file

@ -530,12 +530,15 @@ let
then
ln -s $out/lib/node_modules/.bin $out/bin
# Patch the shebang lines of all the executables
# Fixup all executables
ls $out/bin/* | while read i
do
file="$(readlink -f "$i")"
chmod u+rwx "$file"
patchShebangs "$file"
if isScript "$file"
then
sed -i 's/\r$//' "$file" # convert crlf to lf
fi
done
fi