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

--spaces does not seem to work #1

Closed
Redsandro opened this issue Sep 4, 2019 · 2 comments
Closed

--spaces does not seem to work #1

Redsandro opened this issue Sep 4, 2019 · 2 comments

Comments

@Redsandro
Copy link

Hi,

I'm trying to update my package.json using two spaces only. I've tried the following commands:

json-bump package.json --spaces=2
json-bump --spaces=2 package.json

In both cases, indentation is made out of 4 spaces.

Am I doing it wrong, or is this a bug?

Node v8.16.0
npm 6.10.1
nvm 0.34.0
Linux 5.2.0 x64

@davidfig
Copy link
Owner

Try

json-bump --spaces 2 package.json

Or use yarn (which is what I ended up doing).

@Redsandro
Copy link
Author

I ended up using good old sed. Thanks for the update!

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

No branches or pull requests

2 participants