diff --git a/Dockerfile b/Dockerfile index 55c1e92..ef694f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,6 @@ RUN yarn COPY --from=build /home/node/app/prisma ./prisma/ RUN yarn prisma generate -COPY --from=build /home/node/app/build . +COPY --from=build /home/node/app/dist . CMD [ "node", "index.js"] \ No newline at end of file diff --git a/package.json b/package.json index 281a2d6..9da8aa7 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "scripts": { "tsc": "tsc", "development": "ts-node-dev ./src/index.ts --respawn --transpileOnly", - "build": "tsc -b && copyfiles -u 1 configs_example/**/*.* build/configs_example/", + "build": "tsc -b && copyfiles -u 1 configs_example/**/*.* dist/configs_example/", "docker-build": "docker build . -t yumi:latest", - "production": "tsc && node ./build/index.js", + "production": "tsc && node ./dist/index.js", "test": "mocha -r ts-node/register tests/**/*.ts" }, "name": "yumi", diff --git a/tsconfig.json b/tsconfig.json index 24fd711..a2560c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "./build", + "outDir": "./dist", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */