Use yarn build
This commit is contained in:
parent
23d61ee1b0
commit
1ff0acbaf8
2 changed files with 3 additions and 2 deletions
|
@ -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 .",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
yarn build
|
||||
yarn "build:targets"
|
||||
|
||||
PROD='dist/prod'
|
||||
rm -r "$PROD"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue