Skip to content

Fix WCT under Windows#333

Merged
aomarks merged 2 commits intomasterfrom
wct-windows-path
May 5, 2018
Merged

Fix WCT under Windows#333
aomarks merged 2 commits intomasterfrom
wct-windows-path

Conversation

@aomarks
Copy link
Copy Markdown
Member

@aomarks aomarks commented May 4, 2018

Fix node package file resolution under Windows. We were not accounting for Windows style paths. Also simplify the implementation a bit, and rename some test fixture files so that new implementation can really find the files it is resolving.

Fixes https://github.com/Polymer/web-component-tester/issues/694

@aomarks aomarks force-pushed the wct-windows-path branch 4 times, most recently from 86262af to 1fad31e Compare May 5, 2018 05:50
@aomarks aomarks changed the title [WIP] maybe fix windows WCT Fix WCT under Windows May 5, 2018
Also rename some test fixture files so that new implementation can
really find the files it is resolving.
@aomarks aomarks force-pushed the wct-windows-path branch from 1fad31e to 44c6c47 Compare May 5, 2018 05:54
@aomarks aomarks requested a review from rictic May 5, 2018 05:55
{basedir: wctPackageRoot});
const relativeFilepath = path.relative(rootNodeModules, absoluteFilepath);
// Convert Windows filesystem paths.
const relativeUrl = relativeFilepath.replace(/\\/g, '/');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should do this only on Windows

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@aomarks aomarks merged commit 47b2100 into master May 5, 2018
@aomarks aomarks deleted the wct-windows-path branch May 5, 2018 06:52
@tomloake
Copy link
Copy Markdown

tomloake commented May 8, 2018

Excuse my naivety and please shout if there's a central place to check this stuff but does anyone know when this will be released?

@aomarks
Copy link
Copy Markdown
Member Author

aomarks commented May 8, 2018

Today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants