build: fix generate-assets.mjs

(cherry picked from commit 39704bc812)
This commit is contained in:
himself65 authored and Alex Yang committed 2023-06-20 14:44:27 +08:00
1 parent 6c63fcdbc7
commit 3c5c6ef4e6
1 file changed
+2 -2
+2 -2
View File
@@ -46,8 +46,8 @@ cd(repoRootDir);
// step 2: build web (nextjs) dist
if (!process.env.SKIP_WEB_BUILD) {
process.env.ENABLE_LEGACY_PROVIDER = 'false';
await $`yarn build`;
await $`yarn export`;
await $`yarn nx build @affine/web`;
await $`yarn nx export @affine/web`;
// step 1.5: amend sourceMappingURL to allow debugging in devtools
await glob('**/*.{js,css}', { cwd: affineWebOutDir }).then(files => {