From 20c4224e2dd7aa30f776db3520e9309e71e4378a Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 24 Jul 2024 18:23:09 +0800 Subject: [PATCH] build: fix undefined entry point (#7594) --- packages/frontend/web/package.json | 3 ++- yarn.lock | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/web/package.json b/packages/frontend/web/package.json index a2c6983a16..74358a956e 100644 --- a/packages/frontend/web/package.json +++ b/packages/frontend/web/package.json @@ -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" } } diff --git a/yarn.lock b/yarn.lock index 95c8087bcb..713ca41f05 100644 --- a/yarn.lock +++ b/yarn.lock @@ -856,6 +856,7 @@ __metadata: "@types/react": "npm:^18.2.75" "@types/react-dom": "npm:^18.2.24" core-js: "npm:^3.36.1" + cross-env: "npm:^7.0.3" intl-segmenter-polyfill-rs: "npm:^0.1.7" jotai: "npm:^2.8.0" react: "npm:^18.2.0"