Skip to content

use existing manifest file#11

Open
Rich-Harris wants to merge 1 commit intophamann:masterfrom
Rich-Harris:gh-6
Open

use existing manifest file#11
Rich-Harris wants to merge 1 commit intophamann:masterfrom
Rich-Harris:gh-6

Conversation

@Rich-Harris
Copy link
Copy Markdown
Contributor

Here's the promised PR for #6. I didn't introduce a new option for it because I can't imagine there are occasions when you wouldn't want this behaviour, but let me know if you disagree and I'll update the PR.

It uses JSON.parse(fs.readFileSync(...)) rather than require(...) — both in the source and the tests — because require causes stuff to get cached, which wreaks havoc in the tests when you require tmp/manifest.json more than once, as we are now.

Copy link
Copy Markdown
Owner

@phamann phamann left a comment

Choose a reason for hiding this comment

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

Thanks for this @Rich-Harris, apologies for the delay. My only comment is we should update the readme to note this new behaviour.

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.

2 participants