-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Migrate task arguments helper to CommonJS""
This reverts commit d44da27.
- Loading branch information
1 parent
11ec0f1
commit cb2624b
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
shared/tasks/helpers/task-arguments.mjs → shared/tasks/helpers/task-arguments.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import parser from 'yargs-parser' | ||
const parser = require('yargs-parser') | ||
|
||
// Non-flag arguments as tasks | ||
const { _: tasks } = parser(process.argv) | ||
|
||
// Check for development task | ||
export const isDev = tasks.includes('dev') | ||
module.exports.isDev = tasks.includes('dev') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters