Skip to content
Snippets Groups Projects
Commit 7a200f33 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

Pass full config to npm helper

parent 1c205f19
Branches
No related tags found
No related merge requests found
...@@ -5,8 +5,8 @@ const stable = require('semver-stable'); ...@@ -5,8 +5,8 @@ const stable = require('semver-stable');
var config = {}; var config = {};
module.exports = { module.exports = {
init: function(verbose = false) { init: function(setConfig) {
config.verbose = verbose; config = setConfig;
}, },
getDependencies: function(packageContents) { getDependencies: function(packageContents) {
const allDependencies = []; const allDependencies = [];
......
...@@ -6,7 +6,7 @@ const github = require('./helpers/github'); ...@@ -6,7 +6,7 @@ const github = require('./helpers/github');
const npm = require('./helpers/npm'); const npm = require('./helpers/npm');
const packageJson = require('./helpers/packageJson'); const packageJson = require('./helpers/packageJson');
npm.init(config.verbose); npm.init(config);
// Process arguments // Process arguments
const repoName = process.argv[2]; const repoName = process.argv[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment