-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Requirements should be configured in package.json #1132
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
Comments
Yes, that's the motivation. Having it in package.json makes it easier for external tools, like editor plugins, to use the same config. |
Removing flexibility to a static "one config per package.json" seems pointless to me. You could still have both and the "static (pkg) > overwrites (cli)" model seems more reasonable to me. |
Is there any way to have different requirements for different entry points within the same project with the current configuration model? |
2 package.json files as far as i understood. |
I'm running into an issue with this decision. While using zeit/micro for a server, which uses async-to-gen, I don't get accurate coverage data when using: "require": [
"async-to-gen/register"
] However, the tests run fine. If I want accurate coverage (from nyc), I have to go to latest node version and remove the |
@AutoSponge I'd write a little wrapper module that checks the Node.js version and requires |
@novemberborn great idea. This worked for me. if (!require('is-async-supported')()) {
require('async-to-gen/register')
} |
Is there a particular reason for this?
This pains me:
package.json
clean so far. Now i am forced to put ava fluff in there.#1048 looks like api-bikeshed but there is no technical reasoning.
The text was updated successfully, but these errors were encountered: