-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: `$ npm-cross-link install` now is represented by `$ npm-cross-link` `$ npm-cross-link update-all` now is represented by `$ npm-cross-link-update-all`
- Loading branch information
Showing
5 changed files
with
73 additions
and
75 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env node | ||
|
||
"use strict"; | ||
|
||
Error.stackTraceLimit = Infinity; | ||
|
||
process.on("unhandledRejection", reason => { throw reason; }); | ||
|
||
require("log4-nodejs")({ defaultNamespace: "npm-cross-link" }); | ||
|
||
const meta = require("../package"); | ||
|
||
const argv = require("minimist")(process.argv.slice(2), { boolean: ["pull", "push"] }); | ||
|
||
const usage = `npm-cross-link-update-all v${ meta.version } | ||
Usage: npm-cross-link-update-all [-h | --help] [--no-pull] [--push] | ||
Ensures all packages in npm packages folder are properly installed and up to date | ||
Options: | ||
--pull Pull changes from remote | ||
--push Push committed changes to remote | ||
--help, -h Show this message | ||
`; | ||
|
||
if (argv.h || argv.help) { | ||
process.stdout.write(usage); | ||
return; | ||
} | ||
|
||
if (argv.v || argv.version) { | ||
process.stdout.write(`${ meta.version }\n`); | ||
return; | ||
} | ||
|
||
require("../lib/private/cli")("update-all", null, { | ||
pull: argv.pull !== false, | ||
push: argv.push !== false | ||
}); |
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