Skip to content

Let process.stdin actually trigger it’s end event - #1774

Merged
lukastaegert merged 1 commit into
rollup:masterfrom
LostKobrakai:master
Dec 5, 2017
Merged

Let process.stdin actually trigger it’s end event#1774
lukastaegert merged 1 commit into
rollup:masterfrom
LostKobrakai:master

Conversation

@LostKobrakai

@LostKobrakai LostKobrakai commented Dec 3, 2017

Copy link
Copy Markdown
Contributor

As per rollup/rollup-watch#57

Without the added line the previous listener will never be triggered.

@lukastaegert

Copy link
Copy Markdown
Member

Reading through the linked issue I think I begin to understand what this is about. Not sure we can automatically test this in some way but I think there is no harm putting this into the next patch release.

@lukastaegert lukastaegert added this to the 0.52.x milestone Dec 5, 2017
@lukastaegert
lukastaegert merged commit a44f75b into rollup:master Dec 5, 2017
@guybedford

Copy link
Copy Markdown
Contributor

So this was added not to support stdin for watching, but to ensure the Rollup process can be terminated?

If so can this not also be achieved by just setting the persistent: false watcher option?

This came up again in #2410, where it seems like it is going to be reverted to fix Lerna support.

@LostKobrakai

Copy link
Copy Markdown
Contributor Author

Yes, this was added to ensure rollup is properly terminated once stdin closes. I just don't have a project at hand at the moment to check with the persistent flag. I can try that later.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants