build: fix publish.sh

This commit is contained in:
himself65
2023-06-19 11:18:54 +08:00
parent 5473a12c0e
commit 9512964366
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@
"build": "vite build", "build": "vite build",
"dev": "vite build --watch" "dev": "vite build --watch"
}, },
"files": [
"dist"
],
"exports": { "exports": {
"./manager": { "./manager": {
"type": "./dist/manager.d.ts", "type": "./dist/manager.d.ts",

View File

@@ -7,7 +7,7 @@ packages=(
) )
for package in "${packages[@]}"; do for package in "${packages[@]}"; do
nx build $package yarn nx build $package
cd "packages/$package" cd "packages/$package"
if [ "$NIGHTLY" = "true" ]; then if [ "$NIGHTLY" = "true" ]; then