Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2018
Merged

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

merged 1 commit into from
Oct 16, 2018

Conversation

alan-agius4
Copy link
Collaborator

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

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
Copy link
Collaborator Author

@alan-agius4 alan-agius4 Oct 12, 2018

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
Copy link
Contributor

@filipesilva filipesilva left a comment

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

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