Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

support bundleDependencies: true #81

Merged
merged 4 commits into from
Aug 13, 2019
Merged

support bundleDependencies: true #81

merged 4 commits into from
Aug 13, 2019

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Jul 31, 2019

What ends up in the parsed output is still an array of names, but we
generate that name from the keys if it's set to true.

Also, avoid the footgun of people not realizing that bundleDependencies
should be an array of names, rather than a {name:versoin} object.

BREAKING CHANGE: raise an error if bundleDependencies is something other
than a boolean or Array.

@isaacs isaacs self-assigned this Jul 31, 2019
@isaacs
Copy link
Contributor Author

isaacs commented Aug 9, 2019

I'm actually not so sure this is a breaking change. Currently, having a non-array in bundleDependencies does not raise an error, but it does fail to do what users expect.

isaacs added 3 commits August 13, 2019 09:33
What ends up in the parsed output is still an array of names, but we
generate that name from the keys if it's set to true.

Also, avoid the footgun of people not realizing that bundleDependencies
should be an array of names, rather than a {name:version} object.

If bundleDependencies is something other than a boolean or array, it is
removed from the manifest.
@isaacs isaacs merged commit 55382c2 into latest Aug 13, 2019
@wraithgar wraithgar deleted the bundledeps-true branch August 18, 2021 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant