Commit 915bf19a authored by 水濑真白's avatar 水濑真白

chore: update pg-native handling and deps

parent 1b55307c
Pipeline #43365 passed with stages
in 3 minutes and 16 seconds
FROM node:lts-bookworm-slim as base FROM node:lts-trixie-slim as base
LABEL Author="Nanahira <nanahira@momobako.com>" LABEL Author="Nanahira <nanahira@momobako.com>"
RUN apt update && apt -y install python3 build-essential libpq-dev && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/* RUN apt update && apt -y install python3 build-essential libpq-dev && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/*
...@@ -12,7 +12,8 @@ RUN npm run build ...@@ -12,7 +12,8 @@ RUN npm run build
FROM base FROM base
ENV NODE_ENV production ENV NODE_ENV production
RUN npm ci && npm cache clean --force # 在最终镜像阶段注入 pg-native,开发环境不强依赖本地 libpq
RUN npm ci && npm install --no-save pg-native && npm cache clean --force
COPY --from=builder /usr/src/app/dist ./dist COPY --from=builder /usr/src/app/dist ./dist
COPY ./config.example.yaml ./config.yaml COPY ./config.example.yaml ./config.yaml
......
#!/bin/bash #!/bin/bash
npm install --save typeorm @nestjs/typeorm pg pg-native nicot npm install --save typeorm @nestjs/typeorm pg nicot
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "tabulator-another", "name": "tabulator-another",
"version": "0.0.1", "version": "0.0.1",
"description": "",
"author": "",
"private": true, "private": true,
"description": "",
"license": "UNLICENSED", "license": "UNLICENSED",
"author": "",
"scripts": { "scripts": {
"build": "nest build", "build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"start": "nest start", "start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch", "start:debug": "nest start --debug --watch",
"start:dev": "nest start --watch",
"start:prod": "node dist/main", "start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest", "test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage", "test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json" "test:e2e": "jest --config ./test/jest-e2e.json",
"test:watch": "jest --watch"
},
"jest": {
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testEnvironment": "node",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
}
}, },
"dependencies": { "dependencies": {
"@nestjs/axios": "^4.0.0", "@nestjs/axios": "^4.0.0",
...@@ -27,18 +44,17 @@ ...@@ -27,18 +44,17 @@
"@nestjs/platform-express": "^11.0.1", "@nestjs/platform-express": "^11.0.1",
"@nestjs/swagger": "^11.1.5", "@nestjs/swagger": "^11.1.5",
"@nestjs/typeorm": "^11.0.0", "@nestjs/typeorm": "^11.0.0",
"aragami": "^1.2.6", "aragami": "^1.2.10",
"class-transformer": "^0.5.1", "class-transformer": "^0.5.1",
"class-validator": "^0.14.1", "class-validator": "^0.14.1",
"crypto-random-string": "3.3.1", "crypto-random-string": "3.3.1",
"iconv-lite": "^0.6.3", "iconv-lite": "^0.6.3",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"nesties": "^1.1.1", "nesties": "^1.1.30",
"nestjs-aragami": "^1.2.0", "nestjs-aragami": "^1.2.1",
"nestjs-mycard": "^4.0.2", "nestjs-mycard": "^4.0.2",
"nicot": "^1.1.21", "nicot": "^1.3.6",
"pg": "^8.14.1", "pg": "^8.14.1",
"pg-native": "^3.3.0",
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"typeorm": "^0.3.22", "typeorm": "^0.3.22",
...@@ -76,22 +92,5 @@ ...@@ -76,22 +92,5 @@
"tsconfig-paths": "^4.2.0", "tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3", "typescript": "^5.7.3",
"typescript-eslint": "^8.20.0" "typescript-eslint": "^8.20.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
} }
} }
\ No newline at end of file
...@@ -41,7 +41,7 @@ import { ApiProperty, PartialType } from '@nestjs/swagger'; ...@@ -41,7 +41,7 @@ import { ApiProperty, PartialType } from '@nestjs/swagger';
import { Match } from '../../match/entities/match.entity'; import { Match } from '../../match/entities/match.entity';
import { TournamentRules } from '../../tournament-rules/rule-map'; import { TournamentRules } from '../../tournament-rules/rule-map';
import _ from 'lodash'; import _ from 'lodash';
import { RenameClass } from 'nicot/dist/src/utility/rename-class'; import { RenameClass } from 'nicot';
import { QueryIn } from '../../utility/decorators/query-in'; import { QueryIn } from '../../utility/decorators/query-in';
import { CacheTTL } from 'aragami'; import { CacheTTL } from 'aragami';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment