Skip to content

Commit df98d48

Browse files
committed
fix(tools): windows paths
1 parent 7b4c105 commit df98d48

File tree

1 file changed

+3
-2
lines changed
  • tools/pfe-tools/custom-elements-manifest/lib

1 file changed

+3
-2
lines changed

tools/pfe-tools/custom-elements-manifest/lib/Manifest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,14 @@ export class Manifest {
318318
path.posix.join(
319319
options.rootDir,
320320
options.elementsDir,
321-
demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? '',
321+
decodeURIComponent(demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? ''),
322322
));
323323
console.log({
324324
filePath,
325325
rootDir: options.rootDir,
326326
elementsDir: options.elementsDir,
327-
path: demo.source?.href.replace(options.sourceControlURLPrefix, ''),
327+
path:
328+
decodeURIComponent(demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? ''),
328329
});
329330
const [last = ''] = filePath.split(path.sep).reverse();
330331
const filename = last.replace('.html', '');

0 commit comments

Comments
 (0)