Use yarn build

This commit is contained in:
Michael Bradley 2025-02-15 13:32:42 -05:00
parent 23d61ee1b0
commit 1ff0acbaf8
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "yarn build:client && yarn build:server",
"build": "./render.sh",
"build:targets": "yarn build:client && yarn build:server",
"build:client": "tsc -b && vite build --outDir dist/client",
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
"lint": "eslint .",

View file

@ -1,5 +1,5 @@
#!/bin/sh
yarn build
yarn "build:targets"
PROD='dist/prod'
rm -r "$PROD"