diff --git a/packages/pluggable-widgets-tools/CHANGELOG.md b/packages/pluggable-widgets-tools/CHANGELOG.md index d98cc03b..91363884 100644 --- a/packages/pluggable-widgets-tools/CHANGELOG.md +++ b/packages/pluggable-widgets-tools/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Changed + +- We now copy the final MPK file to the test project for release builds. + ## [11.16.0] - 2026-10-30 ### Changed diff --git a/packages/pluggable-widgets-tools/configs/helpers/rollup-helper.mjs b/packages/pluggable-widgets-tools/configs/helpers/rollup-helper.mjs index e35941c1..b6950c51 100644 --- a/packages/pluggable-widgets-tools/configs/helpers/rollup-helper.mjs +++ b/packages/pluggable-widgets-tools/configs/helpers/rollup-helper.mjs @@ -15,10 +15,10 @@ export async function copyLicenseFile(sourcePath, outDir) { } } -export async function createMpkFile({ mpkDir, mpkFile, widgetTmpDir, isProduction, mxProjectPath, deploymentPath }) { +export async function createMpkFile({ mpkDir, mpkFile, widgetTmpDir, mxProjectPath, deploymentPath }) { mkdirSync(mpkDir, { recursive: true }); await zip(widgetTmpDir, mpkFile); - if (!isProduction && mxProjectPath) { + if (mxProjectPath) { const widgetsPath = join(mxProjectPath, "widgets"); const absolutePath = join(mxProjectPath, deploymentPath); // Create folder if they do not exists or directories were cleaned diff --git a/packages/pluggable-widgets-tools/configs/rollup.config.mjs b/packages/pluggable-widgets-tools/configs/rollup.config.mjs index d150310c..81f74865 100644 --- a/packages/pluggable-widgets-tools/configs/rollup.config.mjs +++ b/packages/pluggable-widgets-tools/configs/rollup.config.mjs @@ -85,7 +85,7 @@ const cssUrlTransform = asset => export default async args => { const production = Boolean(args.configProduction); - if (!production && projectPath) { + if (projectPath) { console.info(colors.blue(`Project Path: ${projectPath}`)); } @@ -301,7 +301,6 @@ export default async args => { mpkDir, mpkFile, widgetTmpDir: outDir, - isProduction: production, mxProjectPath: projectPath, deploymentPath: "deployment/web/widgets" }) @@ -321,7 +320,7 @@ export default async args => { } } ]), - args.watch && !production && projectPath ? livereload() : null + args.watch && projectPath ? livereload() : null ]; } }; diff --git a/packages/pluggable-widgets-tools/configs/rollup.config.native.mjs b/packages/pluggable-widgets-tools/configs/rollup.config.native.mjs index 5d0bb1ac..0a947443 100644 --- a/packages/pluggable-widgets-tools/configs/rollup.config.native.mjs +++ b/packages/pluggable-widgets-tools/configs/rollup.config.native.mjs @@ -66,7 +66,7 @@ const nativeExternal = [ export default async args => { const production = Boolean(args.configProduction); - if (!production && projectPath) { + if (projectPath) { console.info(blue(`Project Path: ${projectPath}`)); } @@ -238,7 +238,6 @@ export default async args => { mpkDir, mpkFile, widgetTmpDir: outDir, - isProduction: production, mxProjectPath: projectPath, deploymentPath: "deployment/native/widgets" })