build: fix generate-assets.mjs

This commit is contained in:
himself65
2023-06-13 14:12:08 +08:00
parent a421265483
commit 39704bc812

4
apps/electron/scripts/generate-assets.mjs Normal file → Executable file
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 => {