diff --git a/Dockerfile b/Dockerfile index 2923c98..b58556a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:17-alpine AS base +FROM node:16.13.0-alpine AS base # Install ffmpeg and build dependencies RUN apk add --no-cache ffmpeg python2 make g++ diff --git a/src/index.ts b/src/index.ts index ac96352..a6b6d35 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import Bot from './bot.js'; import {sequelize} from './utils/db.js'; import Config from './services/config.js'; import FileCacheProvider from './services/file-cache.js'; -import metadata from '../package.json' assert {type: "json"}; +import metadata from '../package.json'; const bot = container.get(TYPES.Bot); diff --git a/tsconfig.json b/tsconfig.json index 1c0987e..28b7f7d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["ES2019", "DOM"], "target": "es2018", - "module": "esnext", + "module": "es2022", "moduleResolution": "node", "declaration": true, "outDir": "dist",