gitpreflight 0.1.10 → 0.1.11
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.
- package/README.md +3 -0
- package/bin/postinstall.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,9 @@ Then run:
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
gitpreflight --help
|
|
13
|
+
gitpreflight setup
|
|
14
|
+
gitpreflight setup local-agent
|
|
15
|
+
gitpreflight version
|
|
13
16
|
```
|
|
14
17
|
|
|
15
18
|
`gitpreflight` is a lightweight npm wrapper that downloads and runs the official GitPreflight binary for your platform.
|
package/bin/postinstall.js
CHANGED
|
@@ -9,7 +9,7 @@ async function main() {
|
|
|
9
9
|
|
|
10
10
|
if (process.env.GITPREFLIGHT_SKIP_DOWNLOAD === "1" || process.env.GITPREFLIGHT_SKIP_DOWNLOAD === "true") {
|
|
11
11
|
if (interactive) {
|
|
12
|
-
process.stderr.write("GitPreflight: run `gitpreflight
|
|
12
|
+
process.stderr.write("GitPreflight: run `gitpreflight setup` to choose setup mode (global, local, or repo).\n");
|
|
13
13
|
}
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
@@ -20,7 +20,7 @@ async function main() {
|
|
|
20
20
|
const version = require("../package.json").version;
|
|
21
21
|
if (version === "0.0.0") {
|
|
22
22
|
if (interactive) {
|
|
23
|
-
process.stderr.write("GitPreflight: run `gitpreflight
|
|
23
|
+
process.stderr.write("GitPreflight: run `gitpreflight setup` to choose setup mode (global, local, or repo).\n");
|
|
24
24
|
}
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ async function main() {
|
|
|
32
32
|
await ensureGitPreflightBinary({ reason: "postinstall" });
|
|
33
33
|
|
|
34
34
|
if (interactive) {
|
|
35
|
-
process.stderr.write("GitPreflight installed. Next: run `gitpreflight
|
|
35
|
+
process.stderr.write("GitPreflight installed. Next: run `gitpreflight setup` to configure hooks.\n");
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|