-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move minimist usage into register.js
- Loading branch information
1 parent
09cd805
commit 3bc36fb
Showing
4 changed files
with
18 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
require("./").register(); | ||
const minimist = require("minimist"); | ||
|
||
const argv = minimist(process.argv.slice(2), { | ||
// eslint-disable-next-line id-denylist | ||
string: ["project"], | ||
alias: { | ||
project: ["P"], | ||
}, | ||
}); | ||
|
||
require("./").register({ | ||
cwd: argv.project, | ||
}); |
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 was deleted.
Oops, something went wrong.
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