dev: stop building native-utils twice as it doesn't seem to fix anything

This commit is contained in:
naskya 2023-10-11 00:02:17 +09:00
parent 11b29dd5a3
commit a7076800cf
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -84,21 +84,8 @@ say "Done! We're almost there.\n"
## prevent migration errors ## prevent migration errors
if [[ ! -f packages/backend/native-utils/built/index.js ]]; then if [[ ! -f packages/backend/native-utils/built/index.js ]]; then
say "Something went wrong orz... Gonnya try fixing that." say "Something went wrong orz... Gonnya try fixing that."
running "pushd packages/backend/native-utils" running "cp neko/index.js packages/backend/native-utils/built/index.js"
pushd packages/backend/native-utils cp neko/index.js packages/backend/native-utils/built/index.js
running "NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=production pnpm build"
NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=production pnpm build
running "popd"
popd
if [[ ! -f packages/backend/native-utils/built/index.js ]]; then
say "Something is still broken... I'll take another measure."
running "cp neko/index.js packages/backend/native-utils/built/index.js"
cp neko/index.js packages/backend/native-utils/built/index.js
say "Let's see if it works...\n"
else
say "The issue seems to be fixed!\n"
fi
else else
say "It's going well so far!\n" say "It's going well so far!\n"
fi fi