Skip to content

Commit

Permalink
disable update-notifier in ci manually?
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sheldrick committed Mar 30, 2018
1 parent 7e5def2 commit 50cae88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
const updateNotifier = require("update-notifier")
const pkg = require("./package.json")

updateNotifier({ pkg }).notify({ isGlobal: false })
const isCi = require("is-ci")

if (!isCi) {
updateNotifier({ pkg }).notify({ isGlobal: false })
}

require("./dist/index.js")
7 changes: 0 additions & 7 deletions src/__tests__/__snapshots__/brokenPatch.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ exports[`patch-package complains without windows error when the patch can't be a
https://github.com/ds300/patch-package/issues
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  patch-package update check failed  β”‚
β”‚ Try running with sudo or get access β”‚
β”‚ to the local update config store via β”‚
β”‚ sudo chown -R $USER:$(id -gn $USER) /Users/dshe/.config β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
error Command failed with exit code 1.
"
`;
14 changes: 0 additions & 14 deletions src/__tests__/__snapshots__/packageGetsUpdated.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ Warning: patch-package detected a patch file version mismatch
to update the version in the patch file name and make this warning go away.
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  patch-package update check failed  β”‚
β”‚ Try running with sudo or get access β”‚
β”‚ to the local update config store via β”‚
β”‚ sudo chown -R $USER:$(id -gn $USER) /Users/dshe/.config β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
"
`;

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

0 comments on commit 50cae88

Please sign in to comment.