Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cli.js « lock-verify « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2cc5e16abb9173c59f38a2ef8a2925dbe6c383b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node
'use strict'
require('@iarna/cli')(main)
  .usage('lock-verify [projectPath]')
  .help()

const lockVerify = require('./index.js')

function main (opts, check) {
  return lockVerify(check).then(result => {
    result.warnings.forEach(w => console.error('Warning:', w))
    if (!result.status) {
      result.errors.forEach(e => console.error(e))
      throw 1
    }
  })
}