Skip to content

Commit 71a63b6

Browse files
committed
Use relative globs so widget xmls are copied on Windows
1 parent 869952b commit 71a63b6

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/pluggable-widgets-tools/configs/rollup.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,10 @@ export default async args => {
320320
clear({ targets: [outDir, mpkDir] }),
321321
command([
322322
() => {
323-
cp(join(sourcePath, "src/**/*.xml"), outDir);
323+
// Re-target join(widgetRoot,...) after PR #182.
324+
cp("src/**/*.xml", outDir);
324325
if (existsSync(`src/${widgetName}.icon.png`) || existsSync(`src/${widgetName}.tile.png`)) {
325-
cp(join(sourcePath, `src/${widgetName}.@(tile|icon)?(.dark).png`), outDir);
326+
cp(`src/${widgetName}.@(tile|icon)?(.dark).png`, outDir);
326327
}
327328
}
328329
]),

packages/pluggable-widgets-tools/configs/rollup.config.native.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,10 @@ export default async args => {
257257
clear({ targets: [outDir, mpkDir] }),
258258
command([
259259
() => {
260-
cp(join(sourcePath, "src/**/*.xml"), outDir);
260+
// Re-target join(widgetRoot,...) after PR #182.
261+
cp("src/**/*.xml", outDir);
261262
if (existsSync(`src/${widgetName}.icon.png`) || existsSync(`src/${widgetName}.tile.png`)) {
262-
cp(join(sourcePath, `src/${widgetName}.@(tile|icon)?(.dark).png`), outDir);
263+
cp(`src/${widgetName}.@(tile|icon)?(.dark).png`, outDir);
263264
}
264265
}
265266
])

0 commit comments

Comments
 (0)