Skip to content

Commit

Permalink
chore: move build script to scripts directory (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Dec 21, 2024
1 parent 50a7b90 commit 6accec8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG NODE_ENV=development
WORKDIR /app
RUN npm config set cache /.npm
COPY --link ./.husky/install.mjs ./.husky/
COPY --link ./build.js ./
COPY --link ./scripts/build.js ./scripts/
COPY --link ./package*.json ./
ARG BUILDPLATFORM
RUN --mount=type=cache,id=npm-$BUILDPLATFORM,target=/.npm \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "dist/main.js",
"scripts": {
"dev": "node --import=tsx --require dotenv/config src/main.ts",
"build": "node build.js",
"build": "node scripts/build.js",
"start": "node dist/main.js",
"check": "run-s -c *:check",
"fix": "run-s -c *:fix",
Expand Down
2 changes: 1 addition & 1 deletion build.js → scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { build } from "esbuild";
import { esbuildPluginVersionInjector } from "esbuild-plugin-version-injector";
import packageJson from "./package.json" with { type: "json" };
import packageJson from "../package.json" with { type: "json" };

await build({
entryPoints: [{ in: "src/main.ts", out: "main" }],
Expand Down

0 comments on commit 6accec8

Please sign in to comment.