Skip to content

Commit 7a3f359

Browse files
David Sheldrickds300
authored andcommitted
disable update-notifier in ci manually?
1 parent a3b58e3 commit 7a3f359

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

β€Žindex.jsβ€Ž

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
const updateNotifier = require("update-notifier")
44
const pkg = require("./package.json")
55

6-
updateNotifier({ pkg }).notify({ isGlobal: false })
6+
const isCi = require("is-ci")
7+
8+
if (!isCi) {
9+
updateNotifier({ pkg }).notify({ isGlobal: false })
10+
}
711

812
require("./dist/index.js")

β€Žsrc/__tests__/__snapshots__/brokenPatch.test.ts.snapβ€Ž

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ exports[`patch-package complains without windows error when the patch can't be a
1515
https://github.com/ds300/patch-package/issues
1616
1717
18-
19-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
20-
β”‚  patch-package update check failed  β”‚
21-
β”‚ Try running with sudo or get access β”‚
22-
β”‚ to the local update config store via β”‚
23-
β”‚ sudo chown -R $USER:$(id -gn $USER) /Users/dshe/.config β”‚
24-
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
2518
error Command failed with exit code 1.
2619
"
2720
`;

β€Žsrc/__tests__/__snapshots__/packageGetsUpdated.test.ts.snapβ€Ž

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ Warning: patch-package detected a patch file version mismatch
2323
2424
to update the version in the patch file name and make this warning go away.
2525
26-
27-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
28-
β”‚  patch-package update check failed  β”‚
29-
β”‚ Try running with sudo or get access β”‚
30-
β”‚ to the local update config store via β”‚
31-
β”‚ sudo chown -R $USER:$(id -gn $USER) /Users/dshe/.config β”‚
32-
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
3326
"
3427
`;
3528

@@ -74,13 +67,6 @@ exports[`patch-package raises an error when the patch is applied 1`] = `
7467
Patch was made for version 1.1.1
7568
Meanwhile node_modules/left-pad is version 1.1.3
7669
77-
78-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
79-
β”‚  patch-package update check failed  β”‚
80-
β”‚ Try running with sudo or get access β”‚
81-
β”‚ to the local update config store via β”‚
82-
β”‚ sudo chown -R $USER:$(id -gn $USER) /Users/dshe/.config β”‚
83-
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
8470
error Command failed with exit code 1.
8571
"
8672
`;

0 commit comments

Comments
Β (0)