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",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"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:client": "tsc -b && vite build --outDir dist/client",
|
||||||
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
yarn build
|
yarn "build:targets"
|
||||||
|
|
||||||
PROD='dist/prod'
|
PROD='dist/prod'
|
||||||
rm -r "$PROD"
|
rm -r "$PROD"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue