UNPKG

mvn-deploy-file

Version:

A wrapper for mvn deploy:deploy-file for quickly pushing files to a Nexus repository.

23 lines (16 loc) 361 B
function parsePkg (arg, pkg) { var result = {} if (pkg && pkg.name) { result.artifactId = pkg.name } if (pkg && pkg.version) { result.version = pkg.version } var config = pkg['mvn-deploy-file'] || {} config = config[arg] || {} for (var key in config) { result[key] = config[key] } return result } module.exports = parsePkg