From 59c8e178657796d4246828f59a4861ada15af6a8 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Sun, 17 Nov 2024 12:28:21 +0530 Subject: [PATCH] fix: build workflow --- .github/workflows/release-timely-docker.yml | 4 +++- packages/nocodb/rspack.timely.config.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-timely-docker.yml b/.github/workflows/release-timely-docker.yml index 22ac3b4e79..238dd90720 100644 --- a/.github/workflows/release-timely-docker.yml +++ b/.github/workflows/release-timely-docker.yml @@ -104,7 +104,9 @@ jobs: run: | # build nocodb ( pack nocodb-sdk and nc-gui ) cd packages/nocodb && - EE=true pnpm exec rspack --config rspack.timely.config.js + EE=true pnpm exec rspack --config rspack.timely.config.js && + # remove bundled libraries (nocodb-sdk, knex-snowflake) + pnpm uninstall --save-prod nocodb-sdk - name: Update version in package.json run: | diff --git a/packages/nocodb/rspack.timely.config.js b/packages/nocodb/rspack.timely.config.js index 58580ecd4c..1826f67a77 100644 --- a/packages/nocodb/rspack.timely.config.js +++ b/packages/nocodb/rspack.timely.config.js @@ -53,7 +53,9 @@ module.exports = { ], nodeEnv: false, }, - externals: [nodeExternals()], + externals: [nodeExternals({ + allowlist: ['nocodb-sdk'] + })], resolve: { extensions: ['.tsx', '.ts', '.js', '.json', '.node'], alias: resolveTsAliases(path.resolve('./tsconfig.json')),