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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-power-user",
3
- "version": "0.0.7",
4
- "description": "Quick tools for developing Firebase functions",
3
+ "version": "0.0.8",
4
+ "description": "Easy tools for every Node.js developer!",
5
5
  "main": "./src/cli.js",
6
6
  "bin": {
7
7
  "npu": "./bin/npu",
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 NPM_CLEAN = 'rm -fr node_modules && rm -fr package-lock.json && npm cache clean --force && npm install && npm rb';
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 => {