diff --git a/src/alpine-node/devcontainer-feature.json b/src/alpine-node/devcontainer-feature.json index 05aa6c3..5deec0d 100644 --- a/src/alpine-node/devcontainer-feature.json +++ b/src/alpine-node/devcontainer-feature.json @@ -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": { @@ -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, diff --git a/src/alpine-node/install.sh b/src/alpine-node/install.sh index 4261455..85eb8e3 100644 --- a/src/alpine-node/install.sh +++ b/src/alpine-node/install.sh @@ -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