From ff14c091de4029c99bfe633da1d0849b23122d88 Mon Sep 17 00:00:00 2001 From: Pokai Chang Date: Fri, 22 Nov 2024 03:25:32 +0800 Subject: [PATCH] fix: wait until patches applied before starting stuff --- packages/vxrn/src/exports/dev.ts | 2 +- packages/vxrn/src/exports/patch.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vxrn/src/exports/dev.ts b/packages/vxrn/src/exports/dev.ts index e3812a9d4..819dc2d7c 100644 --- a/packages/vxrn/src/exports/dev.ts +++ b/packages/vxrn/src/exports/dev.ts @@ -25,7 +25,7 @@ export const dev = async (optionsIn: DevOptions) => { await clean(optionsIn) } - applyBuiltInPatches(options).catch((err) => { + await applyBuiltInPatches(options).catch((err) => { console.error(`\n 🥺 error applying built-in patches`, err) }) diff --git a/packages/vxrn/src/exports/patch.ts b/packages/vxrn/src/exports/patch.ts index d494dc6a6..76ff8e01f 100644 --- a/packages/vxrn/src/exports/patch.ts +++ b/packages/vxrn/src/exports/patch.ts @@ -7,7 +7,7 @@ export type DevOptions = VXRNOptions & { clean?: boolean } export const patch = async (optionsIn: DevOptions) => { const options = await fillOptions(optionsIn) - applyBuiltInPatches(options).catch((err) => { + await applyBuiltInPatches(options).catch((err) => { console.error(`\n 🥺 error applying built-in patches`, err) }) }