Skip to content

Commit

Permalink
feat: --no-maintenance arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Nov 5, 2019
1 parent 8e3a8c7 commit 3310c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@nodepack/service/src/lib/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ module.exports = class Service {
this.commandName = name
this.command = command

const maintenanceEnabled = name !== 'help' && process.env.NODEPACK_NO_MAINTENANCE !== 'true'
const maintenanceEnabled = name !== 'help' &&
process.env.NODEPACK_NO_MAINTENANCE !== 'true' &&
args.maintenance !== false
if (maintenanceEnabled) {
await runMaintenance({
cwd: this.cwd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ module.exports = {
'--git [message]': 'Force git commit with message before maintenance',
'--no-git': 'Skip git commit before maintenance',
'--no-preInstall': 'Skip dependencies install run at the begining',
'--no-maintenace': 'Skip maintenance',
}

0 comments on commit 3310c8d

Please sign in to comment.