How to use updtr - 1 common examples

To help you get started, we’ve selected a few updtr 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 leecade / fe / src / commands / update.js View on Github external
export default (cmd, { appRoot, config }) => {
  if (!appRoot) {
    return log.warning(`No ${chalk.red.underline(config.FE_CONFIG_FILE)} found, make sure ${chalk.blue.underline('cd [project folder]')} or create your project through ${chalk.blue.underline('fe init  [boilerplate]')}`)
  }
  run({
    cwd: appRoot,
    reporter: reporters.default
    // wanted: commander.wanted,
    // testCmd: commander.test,
    // exclude: commander.exclude,
    // testStdout: commander.testStdout,
    // saveExact: commander.saveExact,
    // registry: commander.registry
  }, err => {
    // err && err.code > 1 && log.error(err)
    if (err && err.code > 1) throw err
  })
}

updtr

Update outdated npm modules with zero pain™

Unlicense
Latest version published 3 months ago

Package Health Score

71 / 100
Full package analysis

Popular updtr functions