From 29fcdcc06f4bd88884218cbe33cba5ff0cde8745 Mon Sep 17 00:00:00 2001 From: Vladimir Eremin Date: Tue, 16 Jan 2024 13:33:58 +0300 Subject: [PATCH] Runtume version update --- .github/workflows/ci.yml | 2 +- Dockerfile | 2 +- tsconfig.json | 30 +++++++++++++++++++----------- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfb97de..b8b4294 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] pnpm-version: [8] steps: diff --git a/Dockerfile b/Dockerfile index 52e3a06..dd12c04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ COPY . . RUN pnpm run build -FROM node:18-alpine +FROM node:20-alpine RUN apk update RUN apk add --no-cache bash diff --git a/tsconfig.json b/tsconfig.json index ff5b49a..e53c7cd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,18 +2,26 @@ "compilerOptions": { "strict": true, - "module": "ESNext", - "moduleResolution": "node", - "outDir": "dist", - "removeComments": false, - "sourceMap": true, - "esModuleInterop": true, - - "target": "ESNext", - "lib": ["ESNext"], + "module": "NodeNext", + "moduleResolution": "NodeNext", + "paths": { + "$config": ["config.js"], + "$lib/*": ["src/lib/*"], + "$modules/*": ["src/modules/*"] + }, + "resolveJsonModule": true, "types": ["node"], + + "outDir": "dist", + "sourceMap": true, + + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + + "target": "ES2022", + "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "src/commands", "src/events"] + "include": ["src/**/*", "config.ts"], + "exclude": ["node_modules", "dist"] }