node-power-user 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/cli.js +2 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -44,7 +44,8 @@ Main.prototype.process = async function (args) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
if (self.options.clean) {
|
|
47
|
-
const
|
|
47
|
+
const NPM_INSTALL_FLAG = self.options['--no-optional'] || self.options['-no-optional'] || self.options['no-optional'] ? '--no-optional' : ''
|
|
48
|
+
const NPM_CLEAN = `rm -fr node_modules && rm -fr package-lock.json && npm cache clean --force && npm install ${NPM_INSTALL_FLAG} && npm rb`;
|
|
48
49
|
console.log(chalk.blue(`Running: ${NPM_CLEAN}...`));
|
|
49
50
|
return await asyncCommand(NPM_CLEAN)
|
|
50
51
|
.then(r => {
|