diff --git a/Dockerfile b/Dockerfile index 8669230..011d75a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/package.json b/package.json index c00a61a..26a16a1 100644 --- a/package.json +++ b/package.json @@ -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": {