From 7ff5369337ee066152fd4f569346981d63ec6007 Mon Sep 17 00:00:00 2001 From: eduardozgz Date: Mon, 16 Dec 2024 17:30:10 +0100 Subject: [PATCH] use prebuilds scripts --- apps/bot/package.json | 3 ++- apps/website/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/bot/package.json b/apps/bot/package.json index 5468b7bb4..03a1e6daf 100644 --- a/apps/bot/package.json +++ b/apps/bot/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "clean": "git clean -xdf .next .turbo node_modules", - "build": "pnpm run generate-i18next-res; tsup-node", + "prebuild": "pnpm run generate-i18next-res", + "build": "tsup-node", "dev": "pnpm with-env pnpm build --watch . --watch ../../packages --onSuccess \"node dist/index.js\"", "format": "prettier --check . --ignore-path ../../.gitignore", "lint": "eslint", diff --git a/apps/website/package.json b/apps/website/package.json index 21acaeb49..7bd09704f 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -4,7 +4,8 @@ "private": true, "type": "module", "scripts": { - "build": "pnpm run generate-i18next-res; pnpm with-env next build --experimental-build-mode compile", + "prebuild": "pnpm run generate-i18next-res", + "build": "pnpm with-env next build --experimental-build-mode compile", "clean": "git clean -xdf .next .turbo node_modules", "dev": "pnpm with-env next dev", "format": "prettier --check . --ignore-path ../../.gitignore",