Skip to content

Commit

Permalink
update deps and use corepack for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
cupcakearmy committed Aug 20, 2023
1 parent 37cdc12 commit 18a5a40
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 34 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.3] - 2023-08-20

### Security

- Updated dependencies.

## [1.3.2] - 2023-06-24

### Security
Expand Down
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
FROM node:20-alpine as base
# PNPM
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
# Setup
ENV CI=true
WORKDIR /app
RUN npm -g i pnpm
ADD ./package.json ./pnpm-lock.yaml ./


FROM base as builder
ADD ./package.json ./pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
RUN pnpm install
ADD . .
RUN pnpm run build

FROM base
ADD ./package.json ./pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --prod
RUN pnpm install --prod
COPY --from=builder /app/dist/ /app/dist/

STOPSIGNAL SIGTERM
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"packageManager": "pnpm@8.6.3",
"version": "1.3.2",
"version": "1.3.3",
"license": "MIT",
"type": "module",
"main": "dist",
"scripts": {
"dev": "tsc -w",
"build": "tsc",
"dev": "tsc -w",
"start": "node ."
},
"dependencies": {
"axios": "^1.4.0",
"dotenv": "^16.3.1",
"node-cron": "^3.0.2",
"winston": "^3.9.0"
"winston": "^3.10.0"
},
"devDependencies": {
"@types/node": "^20.3.1",
"@types/node-cron": "^3.0.7",
"typescript": "^5.1.3"
}
"@types/node": "^20.5.1",
"@types/node-cron": "^3.0.8",
"typescript": "^5.1.6"
},
"packageManager": "pnpm@8.6.12"
}
43 changes: 22 additions & 21 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 18a5a40

Please sign in to comment.