"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/config-doc-command.js" between
npm-cli-7.16.0.tar.gz and npm-cli-7.17.0.tar.gz

About: npm is a JavaScript package manager (requires node v6 or higher).

config-doc-command.js  (npm-cli-7.16.0):config-doc-command.js  (npm-cli-7.17.0)
const { definitions } = require('../lib/utils/config/index.js') const { definitions } = require('../lib/utils/config/index.js')
const { writeFileSync, readFileSync } = require('fs') const { writeFileSync, readFileSync } = require('fs')
const { resolve, basename, relative } = require('path') const { resolve } = require('path')
const configDoc = process.argv[2] const configDoc = process.argv[2]
const commandFile = process.argv[3] const commandFile = process.argv[3]
// Note: commands without params skip this whole process. // Note: commands without params skip this whole process.
const { params } = require(resolve(commandFile)) const { params } = require(resolve(commandFile))
const describeAll = () => const describeAll = () =>
params.map(name => definitions[name].describe()).join('\n\n') params.map(name => definitions[name].describe()).join('\n\n')
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)