build: fix undefined entry point (#7594)

This commit is contained in:
LongYinan
2024-07-24 18:23:09 +08:00
committed by GitHub
parent 25b74467ce
commit 20c4224e2d
2 changed files with 3 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
"private": true,
"browser": "src/index.tsx",
"scripts": {
"build": "yarn workspace @affine/cli build",
"build": "cross-env DISTRIBUTION=browser yarn workspace @affine/cli build",
"dev": "yarn workspace @affine/cli dev",
"static-server": "yarn workspace @affine/cli dev --static"
},
@@ -24,6 +24,7 @@
"@affine/cli": "workspace:*",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
"cross-env": "^7.0.3",
"typescript": "^5.4.5"
}
}