Skip to content

Commit

Permalink
Pretty-print json and use jsdoc instead of doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life committed Mar 14, 2024
1 parent e0d8a8f commit 7dc0c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pds/roundup/_nodejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def write_version_number(self, version_number):
metadata['version'] = version_number
with open('package.json', 'w') as package_json_io:
_logger.debug('Writing package.json with new version %s', version_number)
json.dump(metadata, package_json_io, sort_keys=True)
json.dump(metadata, package_json_io, sort_keys=True, indent=4)
except IOError as ex:
_logger.exception('Failed to update package.json with new version %s: %s', version_number, str(ex))
raise RoundupError(ex)
Expand Down Expand Up @@ -121,7 +121,7 @@ def execute(self):
class _DocsStep(_NodeJSStep):
'''A step that uses JSDoc (invoked by ``npm docs``) to generate documentation'''
def execute(self):
invoke(['npm', 'run', 'docs'])
invoke(['npm', 'run', 'jsdoc'])


class _VersionBumpingStep(_NodeJSStep):
Expand Down

0 comments on commit 7dc0c92

Please sign in to comment.