update deps and use corepack for pnpm

This commit is contained in:
Niccolo Borgioli 2023-08-20 22:37:36 +02:00
parent 37cdc12439
commit 18a5a40b43
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
4 changed files with 45 additions and 34 deletions

View File

@ -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/), 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). 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 ## [1.3.2] - 2023-06-24
### Security ### Security

View File

@ -1,17 +1,21 @@
FROM node:20-alpine as base 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 WORKDIR /app
RUN npm -g i pnpm ADD ./package.json ./pnpm-lock.yaml ./
FROM base as builder FROM base as builder
ADD ./package.json ./pnpm-lock.yaml ./ RUN pnpm install
RUN pnpm install --frozen-lockfile
ADD . . ADD . .
RUN pnpm run build RUN pnpm run build
FROM base FROM base
ADD ./package.json ./pnpm-lock.yaml ./ RUN pnpm install --prod
RUN pnpm install --frozen-lockfile --prod
COPY --from=builder /app/dist/ /app/dist/ COPY --from=builder /app/dist/ /app/dist/
STOPSIGNAL SIGTERM STOPSIGNAL SIGTERM

View File

@ -1,23 +1,23 @@
{ {
"packageManager": "pnpm@8.6.3", "version": "1.3.3",
"version": "1.3.2",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"main": "dist", "main": "dist",
"scripts": { "scripts": {
"dev": "tsc -w",
"build": "tsc", "build": "tsc",
"dev": "tsc -w",
"start": "node ." "start": "node ."
}, },
"dependencies": { "dependencies": {
"axios": "^1.4.0", "axios": "^1.4.0",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"node-cron": "^3.0.2", "node-cron": "^3.0.2",
"winston": "^3.9.0" "winston": "^3.10.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.3.1", "@types/node": "^20.5.1",
"@types/node-cron": "^3.0.7", "@types/node-cron": "^3.0.8",
"typescript": "^5.1.3" "typescript": "^5.1.6"
} },
"packageManager": "pnpm@8.6.12"
} }

View File

@ -15,19 +15,19 @@ dependencies:
specifier: ^3.0.2 specifier: ^3.0.2
version: 3.0.2 version: 3.0.2
winston: winston:
specifier: ^3.9.0 specifier: ^3.10.0
version: 3.9.0 version: 3.10.0
devDependencies: devDependencies:
'@types/node': '@types/node':
specifier: ^20.3.1 specifier: ^20.5.1
version: 20.3.1 version: 20.5.1
'@types/node-cron': '@types/node-cron':
specifier: ^3.0.7 specifier: ^3.0.8
version: 3.0.7 version: 3.0.8
typescript: typescript:
specifier: ^5.1.3 specifier: ^5.1.6
version: 5.1.3 version: 5.1.6
packages: packages:
@ -44,12 +44,12 @@ packages:
kuler: 2.0.0 kuler: 2.0.0
dev: false dev: false
/@types/node-cron@3.0.7: /@types/node-cron@3.0.8:
resolution: {integrity: sha512-9PuLtBboc/+JJ7FshmJWv769gDonTpItN0Ol5TMwclpSQNjVyB2SRxSKBcTtbSysSL5R7Oea06kTTFNciCoYwA==} resolution: {integrity: sha512-+z5VrCvLwiJUohbRSgHdyZnHzAaLuD/E2bBANw+NQ1l05Crj8dIxb/kKK+OEqRitV2Wr/LYLuEBenGDsHZVV5Q==}
dev: true dev: true
/@types/node@20.3.1: /@types/node@20.5.1:
resolution: {integrity: sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==} resolution: {integrity: sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==}
dev: true dev: true
/@types/triple-beam@1.3.2: /@types/triple-beam@1.3.2:
@ -182,7 +182,7 @@ packages:
fecha: 4.2.3 fecha: 4.2.3
ms: 2.1.3 ms: 2.1.3
safe-stable-stringify: 2.4.3 safe-stable-stringify: 2.4.3
triple-beam: 1.3.0 triple-beam: 1.4.1
dev: false dev: false
/mime-db@1.52.0: /mime-db@1.52.0:
@ -256,12 +256,13 @@ packages:
resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==}
dev: false dev: false
/triple-beam@1.3.0: /triple-beam@1.4.1:
resolution: {integrity: sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==} resolution: {integrity: sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==}
engines: {node: '>= 14.0.0'}
dev: false dev: false
/typescript@5.1.3: /typescript@5.1.6:
resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==}
engines: {node: '>=14.17'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
dev: true dev: true
@ -281,11 +282,11 @@ packages:
dependencies: dependencies:
logform: 2.5.1 logform: 2.5.1
readable-stream: 3.6.2 readable-stream: 3.6.2
triple-beam: 1.3.0 triple-beam: 1.4.1
dev: false dev: false
/winston@3.9.0: /winston@3.10.0:
resolution: {integrity: sha512-jW51iW/X95BCW6MMtZWr2jKQBP4hV5bIDq9QrIjfDk6Q9QuxvTKEAlpUNAzP+HYHFFCeENhph16s0zEunu4uuQ==} resolution: {integrity: sha512-nT6SIDaE9B7ZRO0u3UvdrimG0HkB7dSTAgInQnNR2SOPJ4bvq5q79+pXLftKmP52lJGW15+H5MCK0nM9D3KB/g==}
engines: {node: '>= 12.0.0'} engines: {node: '>= 12.0.0'}
dependencies: dependencies:
'@colors/colors': 1.5.0 '@colors/colors': 1.5.0
@ -297,6 +298,6 @@ packages:
readable-stream: 3.6.2 readable-stream: 3.6.2
safe-stable-stringify: 2.4.3 safe-stable-stringify: 2.4.3
stack-trace: 0.0.10 stack-trace: 0.0.10
triple-beam: 1.3.0 triple-beam: 1.4.1
winston-transport: 4.5.0 winston-transport: 4.5.0
dev: false dev: false