From 41426e3be2061a378bfdc0f7ea38251eabc7879f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 7 Aug 2024 03:23:34 +0800 Subject: [PATCH] fix: monorepo & script --- pnpm-workspace.yaml | 1 + scripts/inline-enums.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d79640584..c517e8536 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,7 @@ packages: - 'packages/*' - playground + - benchmark catalog: '@babel/parser': ^7.24.7 diff --git a/scripts/inline-enums.js b/scripts/inline-enums.js index b1baaa6c5..4e582e251 100644 --- a/scripts/inline-enums.js +++ b/scripts/inline-enums.js @@ -198,7 +198,9 @@ export function scanEnums() { } // 3. save cache - if (!existsSync('temp')) mkdirSync('temp') + try { + mkdirSync('temp') + } catch {} /** @type {EnumData} */ const enumData = {