Skip to content

Commit

Permalink
Merge pull request #339 from JarvusInnovations/upgrade-node20
Browse files Browse the repository at this point in the history
chore(deps): upgrade to node20
  • Loading branch information
themightychris committed Apr 6, 2024
2 parents 19bdcec + 2a25750 commit e226810
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .studiorc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
# install dependencies
echo
echo "--> Installing project development dependencies..."
# use jarvus/node20 build until merged: https://github.com/habitat-sh/core-plans/pull/4708
hab pkg install \
jarvus/mkdocs-studio \
jarvus/studio-toolkit \
core/node16 \
jarvus/node20 \
core/git

hab pkg binlink core/node16 core/git
hab pkg binlink jarvus/node20 core/git
hab pkg binlink core/coreutils env --dest /usr/bin


Expand Down
2 changes: 1 addition & 1 deletion github-actions/projector/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ outputs:
commit:
description: 'Commit hash for last projection (if commit-to is configured)'
runs:
using: 'node16'
using: 'node20'
main: 'index.js'
post: 'post.js'
14 changes: 10 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"async-exit-hook": "^2.0.1",
"axios": "^1.3.3",
"chokidar": "^3.5.3",
"debounce": "^1.2.1",
"debounce": "^2.0.0",
"dockerode": "^4.0.2",
"fb-watchman": "^2.0.1",
"git-client": "^1.8.3",
Expand Down
4 changes: 2 additions & 2 deletions plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pkg_build_deps=(

pkg_deps=(
core/git
core/node16
"jarvus/node20" # use jarvus build until merged: https://github.com/habitat-sh/core-plans/pull/4708
core/hab/0.79.0 # last version before new license
)

Expand Down Expand Up @@ -39,7 +39,7 @@ do_build() {
npm install

build_line "Fixing interpreter"
sed -e "s#\#\!/usr/bin/env node#\#\!$(pkg_path_for node16)/bin/node#" --in-place "node-bin/cli.js"
sed -e "s#\#\!/usr/bin/env node#\#\!$(pkg_path_for node20)/bin/node#" --in-place "node-bin/cli.js"

popd > /dev/null
}
Expand Down

0 comments on commit e226810

Please sign in to comment.