diff --git a/Dockerfile b/Dockerfile index 4f19b16..de2431c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM node:17-alpine WORKDIR /app -COPY package.json yarn.lock . -RUN yarn install --frozen-lockfile COPY . . -RUN yarn build -CMD [ "node", "dist/index.js" ] +RUN yarn install --frozen-lockfile +CMD [ "yarn", "start" ] diff --git a/package.json b/package.json index f8d08e2..34cd7a8 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "dev": "NODE_ENV=development nodemon --ext ts,json --watch src --exec esno src/index.ts", - "build": "tsc", + "start": "esno src/index.ts", "lint": "eslint **/*.ts" }, "dependencies": { diff --git a/src/index.ts b/src/index.ts index e6cde6b..aa19a04 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,10 +10,10 @@ import * as BuildConfig from './constants'; import { filterMessage } from './filters'; import { green, bold, blue, underline, yellow } from 'kleur/colors'; import * as parser from 'discord-command-parser'; -import fs from 'fs'; -import path, { dirname } from 'path'; +import * as fs from 'fs'; +import * as path from 'path'; import { SuccessfulParsedMessage } from 'discord-command-parser'; -import dotenv from 'dotenv'; +import * as dotenv from 'dotenv'; import { parseLog } from './mclogs'; dotenv.config();