Skip to content
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

fix(@ngtools/webpack): do not run ngcc when node_modules does not exist #23487

Merged
merged 1 commit into from Jul 4, 2022

Conversation

JoostK
Copy link
Member

@JoostK JoostK commented Jul 1, 2022

Prior to this change the CLI would fail with an error when ngcc could not
be run due to a missing node_modules directory, as is the case with Yarn
Plug'n'Play for example. The workaround was to create an empty node_modules
directory, but this is inconvenient and shouldn't make any difference.

This commit removes the error and simply skips ngcc processing.

@JoostK JoostK added comp: ngtools/webpack target: patch labels Jul 1, 2022
@JoostK
Copy link
Member Author

@JoostK JoostK commented Jul 1, 2022

Suggestions on how/where to add a test are welcome!

…xist

Prior to this change the CLI would fail with an error when ngcc could not
be run due to a missing `node_modules` directory, as is the case with Yarn
Plug'n'Play for example. The workaround was to create an empty `node_modules`
directory, but this is inconvenient and shouldn't make any difference.

This commit removes the error and simply skips ngcc processing.
@JoostK JoostK force-pushed the ngcc-no-node-modules branch from 9aaae51 to 8c6cfa8 Compare Jul 1, 2022
@JoostK JoostK requested a review from alan-agius4 Jul 1, 2022
@JoostK JoostK marked this pull request as ready for review Jul 1, 2022
@JoostK
Copy link
Member Author

@JoostK JoostK commented Jul 1, 2022

I will also change this in ng-packagr once this has been reviewed/merged here.

@JoostK JoostK force-pushed the ngcc-no-node-modules branch from 8c6cfa8 to b3a84db Compare Jul 1, 2022
clydin
clydin approved these changes Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge comp: ngtools/webpack target: patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants