1
0
Fork 1
mirror of https://example.com synced 2024-11-25 00:56:39 +09:00

dev: build backend-rs and firefish-js at first

these modules are imported by other modules
This commit is contained in:
naskya 2024-01-23 01:37:50 +09:00
parent 01e8ae37f8
commit 631a1d1d8e
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 4 additions and 3 deletions

View file

@ -51,7 +51,8 @@ ENV VERSION=${VERSION}
RUN pnpm pkg set version="${VERSION}"
# Compile
RUN env NODE_ENV=production sh -c "pnpm run --filter '!backend-rs' build && pnpm run gulp"
RUN env NODE_ENV=production sh -c "pnpm --filter 'firefish-js' run build"
RUN env NODE_ENV=production sh -c "pnpm --filter '!backend-rs' --filter '!firefish-js' -r --parallel run build && pnpm run gulp"
# Trim down the dependencies to only those for production
RUN pnpm install --prod --frozen-lockfile

View file

@ -13,7 +13,7 @@
"private": true,
"scripts": {
"rebuild": "pnpm run clean && pnpm run build",
"build": "pnpm --filter firefish-js run build && pnpm --filter !firefish-js -r --parallel run build && pnpm run gulp",
"build": "pnpm --filter backend-rs run build && pnpm --filter firefish-js run build && pnpm --filter !firefish-js --filter !backend-rs -r --parallel run build && pnpm run gulp",
"start": "pnpm --filter backend run start",
"start:container": "pnpm run gulp && pnpm run migrate && pnpm run start",
"init": "pnpm run migrate",
@ -25,7 +25,7 @@
"dev:staging": "NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=development pnpm run build && pnpm run start",
"lint": "pnpm -r --parallel run lint",
"debug": "pnpm run build:debug && pnpm run start",
"build:debug": "pnpm clean && pnpm --filter firefish-js run build:types && pnpm -r --parallel run build:debug && pnpm run gulp",
"build:debug": "pnpm clean && pnpm --filter backend-rs run build:debug && pnpm --filter firefish-js run build:debug && pnpm --filter firefish-js run build:types && pnpm --filter !firefish-js --filter !backend-rs -r --parallel run build:debug && pnpm run gulp",
"format": "pnpm -r --parallel run format",
"clean": "pnpm node ./scripts/clean-built.mjs",
"clean-cargo": "pnpm node ./scripts/clean-cargo.mjs",