Skip to content

fix(@ngtools/webpack): barrel files fail on windows - #12567

Merged
alexeagle merged 1 commit into
angular:masterfrom
alan-agius4:ngtools_barrel
Oct 16, 2018
Merged

alexeagle merged 1 commit into
angular:masterfrom
alan-agius4:ngtools_barrel

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Oct 12, 2018 •

Copy link
Copy Markdown
Collaborator

Fixes #12035
Fixes #12589
Fixes #8581

if (fs.statSync(module).isDirectory()) {
const indexModule = join(module, 'index.ts');
if (fs.existsSync(indexModule)) {
// If it's a file it will return false

@alan-agius4 alan-agius4 Oct 12, 2018 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Paths here are not FS, they are normalized for virtual host

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Oct 12, 2018

@filipesilva filipesilva left a comment

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.

Great catch, and glad we have a test for it now 👍

@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release and removed target: patch This PR is targeted for the next patch release labels Oct 12, 2018
@alexeagle
alexeagle merged commit d0bea7a into angular:master Oct 16, 2018
@alan-agius4
alan-agius4 deleted the ngtools_barrel branch October 16, 2018 18:46
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

target: patch This PR is targeted for the next patch release

Projects

None yet

4 participants