adding an optional spaces param

We have a CI job that I can't figure out how to make it commit to our `package.json` with 2 spaces.

sorry about the newline junk.