fix esno
This commit is contained in:
parent
37adfacb4f
commit
de2ff62cd5
3 changed files with 6 additions and 8 deletions
|
@ -1,7 +1,5 @@
|
||||||
FROM node:17-alpine
|
FROM node:17-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json yarn.lock .
|
|
||||||
RUN yarn install --frozen-lockfile
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn build
|
RUN yarn install --frozen-lockfile
|
||||||
CMD [ "node", "dist/index.js" ]
|
CMD [ "yarn", "start" ]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NODE_ENV=development nodemon --ext ts,json --watch src --exec esno src/index.ts",
|
"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"
|
"lint": "eslint **/*.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -10,10 +10,10 @@ import * as BuildConfig from './constants';
|
||||||
import { filterMessage } from './filters';
|
import { filterMessage } from './filters';
|
||||||
import { green, bold, blue, underline, yellow } from 'kleur/colors';
|
import { green, bold, blue, underline, yellow } from 'kleur/colors';
|
||||||
import * as parser from 'discord-command-parser';
|
import * as parser from 'discord-command-parser';
|
||||||
import fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import path, { dirname } from 'path';
|
import * as path from 'path';
|
||||||
import { SuccessfulParsedMessage } from 'discord-command-parser';
|
import { SuccessfulParsedMessage } from 'discord-command-parser';
|
||||||
import dotenv from 'dotenv';
|
import * as dotenv from 'dotenv';
|
||||||
import { parseLog } from './mclogs';
|
import { parseLog } from './mclogs';
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue