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

Add a new gatsby-cli package #1696

Merged
merged 7 commits into from
Aug 2, 2017
Merged

Add a new gatsby-cli package #1696

merged 7 commits into from
Aug 2, 2017

Conversation

KyleAMathews
Copy link
Contributor

Once landed, users should install this globally instead of the Gatsby package.

@sebastienfi
Copy link
Contributor

sebastienfi commented Aug 2, 2017

@KyleAMathews
Copy link
Contributor Author

No — this is for everyone to use. It's a replacement for installing the gatsby package globally e.g. running gatsby new. gatsby-dev-cli is for developing Gatsby the project.

@KyleAMathews KyleAMathews merged commit 3634022 into master Aug 2, 2017
@KyleAMathews KyleAMathews deleted the gatsby-cli branch August 2, 2017 21:59
@KyleAMathews
Copy link
Contributor Author

Deploy preview failed.

Built with commit d8e6b6c

https://app.netlify.com/sites/using-glamor/deploys/598245bd0752d007b92d1ce1

@KyleAMathews
Copy link
Contributor Author

KyleAMathews commented Aug 2, 2017

Deploy preview failed.

Built with commit c7e1e63

https://app.netlify.com/sites/using-glamor/deploys/598249c90752d053f62d1c92

let localPackageJSON
try {
localPackageJSON = require(path.resolve(`./package.json`))
if (localPackageJSON.dependencies && localPackageJSON.dependencies.gatsby) {
Copy link

Choose a reason for hiding this comment

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

@KyleAMathews is there is a reason why devDependencies are not checked? in our setup gatsby is a dev dep, and this change broke our builds 😿 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

None :-) I just didn't think about that as I've never made gatsby a devDependency but can now there's plenty of use cases where that makes sense. I'll merge #1738 and make a new release.

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.

3 participants