Skip to content

Commit

Permalink
chore: 主build还是留给tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed May 1, 2023
1 parent 0cac52a commit 9867692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN apk add build-base
COPY package-lock.json package.json tsconfig.json ./
RUN npm ci
COPY src ./src
RUN npm run build:tsc
RUN npm run build

FROM node:18-bullseye-slim AS build

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"private": true,
"scripts": {
"test": "true",
"build": "rm -rf dist && npm run build:esbuild",
"build:tsc": "rm -rf dist && tsc",
"build": "rm -rf dist && tsc",
"build:esbuild": "esbuild --bundle --platform=node --sourcemap --outfile=dist/openbmclapi.js src/index.ts",
"pkg": "npm run build && pkg dist/openbmclapi.js -C Gzip",
"pkg": "npm run build:esbuild && pkg dist/openbmclapi.js -C Gzip",
"lint": "eslint . --ext .ts"
},
"repository": {
Expand Down

0 comments on commit 9867692

Please sign in to comment.