Skip to content

Commit

Permalink
Switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
robkaandorp committed Feb 12, 2025
1 parent 9808369 commit ae6acc7
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 160 deletions.
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*/node_modules
*/dist
node_modules/
dist/
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ FROM node:lts-alpine AS builder
COPY . /app
WORKDIR /app
RUN rm -rf ./dist
RUN npm ci
RUN npx tsc
RUN npm prune --production
RUN npm install --global corepack@latest
RUN corepack enable pnpm
RUN pnpm install --frozen-lockfile
RUN pnpm run build
RUN pnpm prune --prod

FROM node:lts-alpine AS dist
COPY --from=builder /app/dist /app/dist
Expand Down
150 changes: 0 additions & 150 deletions package-lock.json

This file was deleted.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Drone portainer plugin to update a portainer stack with a docker compose file",
"main": "dist/server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsc"
},
"repository": {
"type": "git",
Expand All @@ -17,10 +17,11 @@
},
"homepage": "https://github.com/robkaandorp/drone-portainer#readme",
"dependencies": {
"axios": "^1.7.4"
"axios": "^1.7.9"
},
"devDependencies": {
"@types/node": "^20.16.1",
"typescript": "^5.5.4"
}
"@types/node": "^22.13.1",
"typescript": "^5.7.3"
},
"packageManager": "pnpm@10.3.0+sha512.ee592eda8815a8a293c206bb0917c4bb0ff274c50def7cbc17be05ec641fc2d1b02490ce660061356bd0d126a4d7eb2ec8830e6959fb8a447571c631d5a2442d"
}
113 changes: 113 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit ae6acc7

Please sign in to comment.