mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
fix build
This commit is contained in:
parent
5415482e09
commit
cd19fb2e4c
2 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,8 @@ EXPOSE ${PORT}
|
|||
STOPSIGNAL SIGINT
|
||||
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]
|
||||
|
||||
RUN yarn build:nostatic
|
||||
RUN yarn remove:files
|
||||
RUN yarn build:typescript
|
||||
COPY static /app/dist/static
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s \
|
||||
|
|
|
@ -89,10 +89,9 @@
|
|||
"copy:files": "copyFiles -u 1 static/**/* dist/static",
|
||||
"remove:files": "rimraf dist",
|
||||
"test:unit": "jest --config config/jest.config.js",
|
||||
"build:nostatic": "yarn remove:files && tsc --project ./",
|
||||
"build:typescript": "tsc --project tsconfig.json && tscpaths -p tsconfig.json -s ./src -o ./dist",
|
||||
"build:typescript": "tsc --project tsconfig.json",
|
||||
"build": "yarn remove:files && yarn copy:files && yarn build:typescript",
|
||||
"start": "node -r tsconfig-paths/register -r ts-node ./dist/src/server.js",
|
||||
"start": "TS_NODE_BASEURL=./dist node -r tsconfig-paths/register ./dist/src/server.js",
|
||||
"dev": "nodemon",
|
||||
"lint": "eslint src --fix",
|
||||
"types:check": "tsc --noEmit --pretty",
|
||||
|
|
Loading…
Reference in a new issue