Skip to content

Fix/windows mpk xml#184

Closed
alihcsumer wants to merge 3 commits into
masterfrom
fix/windows-mpk-xml
Closed

Fix/windows mpk xml#184
alihcsumer wants to merge 3 commits into
masterfrom
fix/windows-mpk-xml

Conversation

@alihcsumer

Copy link
Copy Markdown
Contributor

Checklist

  • Contains unit tests ✅
  • Contains breaking changes ❌
  • Compatible with: MX 9️⃣ (11.x)
  • Did you update version and changelog? ✅ changelog / ❌ version
  • PR title properly formatted? ✅

This PR contains

  • Bug fix

What is the purpose of this PR?

Fix Windows builds producing an .mpk missing the widget's .xml files and icon/tile PNGs.

...

Relevant changes

The copy step used absolute drive-letter globs that fast-glob returns empty for on Windows, so the widget files were silently skipped; switched both rollup configs to relative globs and added an assertion in command-tests so an incomplete .mpk

What should be covered while testing?

Build on Windows and Linux; confirm the .mpk contains package.xml and .xml (and PNGs when present in src).

...

@weirdwater weirdwater left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the title to start with [WTF-2697]: to link the PR to the story?

);
if (missing.length) {
throw new Error(`Expected widget bundle files in mpk, but missing: ${missing.join(", ")}.`);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the function is only used in the testRelease method, we might as well just inline it there. Also, we might be able to combine these checks with the mpk file check, since they essentially do the same check.

command([
() => {
cp(join(sourcePath, "src/**/*.xml"), outDir);
// Re-target join(widgetRoot,...) after PR #182.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we retarget the full path after #182? The widgetRoot path in that branch probably also uses full paths with drive letters.

@weirdwater weirdwater closed this Jun 22, 2026
@weirdwater weirdwater deleted the fix/windows-mpk-xml branch June 22, 2026 16:52
@alihcsumer alihcsumer restored the fix/windows-mpk-xml branch June 23, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants