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

new feature request — recognise packages used by babel.config.js #464

Closed
2 tasks done
revelt opened this issue Nov 23, 2018 · 2 comments
Closed
2 tasks done

new feature request — recognise packages used by babel.config.js #464

revelt opened this issue Nov 23, 2018 · 2 comments

Comments

@revelt
Copy link

revelt commented Nov 23, 2018

  • node version: v10.13.0
  • npm version: 6.4.1
  • npm-check-updates version: 2.14.3

Currently npm-check-updates does not recognise packages used only by babel.config.js config which sits in the root.

Here's a sample babel.config.js to try:

module.exports = function babelConfig(api) {
  const plugins = [
    '@babel/plugin-proposal-class-properties'
  ]
  return {
    plugins
  }
}

then make sure the @babel/plugin-proposal-class-properties is required among dependencies. When ncu is ran, you should get:

msg

I think it should be technically possible to expand the places where we search for "used" things so that Babel configs are included, what do you think?

@raineorshine
Copy link
Owner

That's a great idea, although I'm not sure if it belongs more in ncu or in babel. So far ncu does not work with other dependencies besides npm.

@raineorshine
Copy link
Owner

Closed with the revive-me tag for interested contributors. See #484.

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

No branches or pull requests

2 participants