Convert to JSON pretty format with two spaces and adjust Node paths.
Adjust component.json paths and include a "main" field.

This should hopefully fix #448.