Skip to content

Commit

Permalink
add pnpmVersion option to alpine-node feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Oct 5, 2023
1 parent 0c8fed4 commit 51279d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/alpine-node/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-node",
"id": "alpine-node",
"version": "0.0.3",
"version": "0.0.4",
"description": "Installs node and npm on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-node",
"options": {
Expand All @@ -10,6 +10,16 @@
"default": true,
"description": "Enable corepack"
},
"pnpmVersion": {
"type": "string",
"default": "latest",
"prosals": [
"latest",
"8.8.0",
"7.5.2"
],
"description": "Specify pnpm version"
},
"antfuNi": {
"type": "boolean",
"default": true,
Expand Down
1 change: 1 addition & 0 deletions src/alpine-node/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ apk --no-cache add nodejs npm
if [[ $COREPACK == "true" ]]; then
npm i -g corepack
corepack enable
corepack prepare pnpm@$PNPMVERSION --activate
fi

if [[ $ANTFUNI == "true" ]]; then
Expand Down

0 comments on commit 51279d7

Please sign in to comment.