From c6615aa50aa3cbe41c9f1a93dec5d1a78d6163cf Mon Sep 17 00:00:00 2001 From: mingxuanzhang Date: Tue, 16 Apr 2024 18:58:36 +0100 Subject: [PATCH] chore: delete exports for bundling workflow --- scripts/updateForBundling.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/updateForBundling.js b/scripts/updateForBundling.js index fa16a0f73..f5015d2de 100644 --- a/scripts/updateForBundling.js +++ b/scripts/updateForBundling.js @@ -25,6 +25,11 @@ function updatePackageJson() { delete packageJson.scripts.prepare; } + // Remove 'exports' + if (packageJson.exports) { + delete packageJson.exports; + } + fs.writeFile(packagePath, JSON.stringify(packageJson, null, 2), 'utf8', (writeErr) => { if (writeErr) { console.error(`Error writing to package.json: ${writeErr}`);