graphql-directive-computed-property icon indicating copy to clipboard operation
graphql-directive-computed-property copied to clipboard

babel: command not found

Open JakeHartnell opened this issue 6 years ago • 1 comments

npm install graphql-directive-computed-property fails. : /

To reproduce:

mkdir babelNotfound
npm install graphql-directive-computed-property

Babel is in devDependencies, but it's actually required to build this package. Not every project has Babel as a dependency, so the options are:

  1. Include it as a regular dependency. : /
  2. For distribution to npm include the build.

See: https://github.com/bookercodes/articles/blob/master/how-to-build-and-publish-es6-npm-modules-today-with-babel.md

JakeHartnell avatar Jan 18 '19 19:01 JakeHartnell

@JakeHartnell definitely it should be bundled before release so I'll try to do or if you want PR is welcome :)

czystyl avatar Jan 20 '19 19:01 czystyl