How to use the @istanbuljs/schema.nyc function in @istanbuljs/schema

To help you get started, we’ve selected a few @istanbuljs/schema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github istanbuljs / nyc / lib / commands / helpers.js View on Github external
setupOptions (yargs, command, cwd) {
    Object.entries(schema.nyc.properties).forEach(([name, setup]) => {
      if (blockOptions.includes(name)) {
        return
      }

      const option = {
        description: setup.description,
        default: setup.default,
        type: setup.type
      }

      if (name === 'cwd') {
        if (command !== null) {
          return
        }

        option.default = cwd

@istanbuljs/schema

Schemas describing various structures used by nyc and istanbuljs

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis

Similar packages