ga4gh / gh-openapi-docs

Package for building OpenAPI schema docs and UI for gh-pages
Apache License 2.0
7 stars 5 forks source link

Only show the tool version when specifying the option --version #52

Closed tschaffter closed 3 years ago

tschaffter commented 4 years ago

The current output includes (possibly debug) information. Only the version should be printed.

node ./node_modules/@ga4gh/gh-openapi-docs/dist/bundle.js --version
{
  sha: '74199faa675483771cc091d029f1766c34655e32',
  abbreviatedSha: '74199faa67',
  branch: 'ci/add-build-and-publish',
  tag: null,
  committer: 'tschaffter <thomas.schaffter@gmail.com>',
  committerDate: '2020-09-02T15:54:09.000Z',
  author: 'tschaffter <thomas.schaffter@gmail.com>',
  authorDate: '2020-09-02T15:54:09.000Z',
  commitMessage: 'Add @ga4gh/gh-openapi-docs to dev dependencies',
  root: '/home/tschaffter/persist/dev/nlp-sandbox-schemas',
  commonGitDir: '/home/tschaffter/persist/dev/nlp-sandbox-schemas/.git',
  worktreeGitDir: '/home/tschaffter/persist/dev/nlp-sandbox-schemas/.git',
  lastTag: null,
  commitsSinceLastTag: 0,
  parents: [ 'b3ed610a6c073dbf251269fe843886166e0afc33' ]
}
{
  apiSpecPath: '',
  docsRoot: 'docs',
  uiRoot: 'swagger-ui',
  redocRoot: 'redoc-ui',
  defaultBranch: 'master',
  branchPathBase: 'preview',
  contactUrl: '',
  sha: '74199faa675483771cc091d029f1766c34655e32',
  abbreviatedSha: '74199faa67',
  branch: 'ci/add-build-and-publish',
  tag: null,
  committer: 'tschaffter <thomas.schaffter@gmail.com>',
  committerDate: '2020-09-02T15:54:09.000Z',
  author: 'tschaffter <thomas.schaffter@gmail.com>',
  authorDate: '2020-09-02T15:54:09.000Z',
  commitMessage: 'Add @ga4gh/gh-openapi-docs to dev dependencies',
  root: '/home/tschaffter/persist/dev/nlp-sandbox-schemas',
  commonGitDir: '/home/tschaffter/persist/dev/nlp-sandbox-schemas/.git',
  worktreeGitDir: '/home/tschaffter/persist/dev/nlp-sandbox-schemas/.git',
  lastTag: null,
  commitsSinceLastTag: 0,
  parents: [ 'b3ed610a6c073dbf251269fe843886166e0afc33' ],
  env: 'development',
  repoOrigin: 'git@github.com:data2health/nlp-sandbox-schemas.git',
  branchPath: '/home/tschaffter/persist/dev/nlp-sandbox-schemas/preview/ci/add-build-and-publish'
}
v0.1.9
tschaffter commented 4 years ago

Similarly to #51, this issue affect the current release on npmjs (0.2.1) but does not seem to affect the version available in the branch develop.

tschaffter commented 3 years ago

The package version on npmjs is outdated. I'll reopen this ticket if I notice that the next release has the issue described in this ticket.