Skip to content

Commit

Permalink
update alpine-node
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Jan 17, 2024
1 parent 66e618b commit 914ff0f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/alpine-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Installs node and npm on alpine

| Options Id | Description | Type | Default Value |
|-----|-----|-----|-----|
| lts | Install LTS node version | boolean | true |
| corepack | Enable corepack | boolean | true |
| pnpmVersion | Specify pnpm version | string | latest |
| globalPackages | List of global packages to install | string | - |
Expand Down
7 changes: 1 addition & 6 deletions src/alpine-node/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"name": "alpine-node",
"id": "alpine-node",
"version": "0.0.8",
"version": "0.0.9",
"description": "Installs node and npm on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-node",
"options": {
"lts": {
"type": "boolean",
"default": true,
"description": "Install LTS node version"
},
"corepack": {
"type": "boolean",
"default": true,
Expand Down
6 changes: 1 addition & 5 deletions src/alpine-node/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ set -e

echo "Activating feature 'alpine-node'"

if [[ $LTS == "true" ]]; then
apk add --no-cache nodejs-lts npm
else
apk add --no-cache nodejs npm
fi
apk add --no-cache nodejs npm

if [[ $COREPACK == "true" ]]; then
npm i -g corepack
Expand Down

0 comments on commit 914ff0f

Please sign in to comment.