Skip to content

Commit

Permalink
chore: patch fsevents ts file (#10913)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 4, 2020
1 parent b9c623c commit e12a302
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"@testing-library/dom/pretty-format": "26.6.1",
"@types/jest/jest-diff": "^25.1.0",
"@types/jest/pretty-format": "^25.1.0",
"fbjs-scripts": "patch:fbjs-scripts@^1.1.0#./patches/fbjs-scripts.patch"
"fbjs-scripts": "patch:fbjs-scripts@^1.1.0#./patches/fbjs-scripts.patch",
"jest-haste-map/fsevents": "patch:fsevents@^2.1.2#./patches/fsevents.patch"
}
}
13 changes: 13 additions & 0 deletions patches/fsevents.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/fsevents.d.ts b/fsevents.d.ts
index 3979ab9e5b060e3a6c10449762ba872c5244f29a..2723c048a80df296ecc13eff5d96549f572a7383 100644
--- a/fsevents.d.ts
+++ b/fsevents.d.ts
@@ -15,7 +15,7 @@ declare type Info = {
};
declare type WatchHandler = (path: string, flags: number, id: string) => void;
export declare function watch(path: string, handler: WatchHandler): () => Promise<void>;
-export declare function watch(path: string, since: number, handler: WatchHandler);
+export declare function watch(path: string, since: number, handler: WatchHandler): () => Promise<void>;
export declare function getInfo(path: string, flags: number): Info;
export declare const constants: {
None: 0x00000000;
15 changes: 12 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9361,12 +9361,21 @@ fsevents@^2.1.2:
languageName: node
linkType: hard

"fsevents@patch:fsevents@^2.1.2#builtin<compat/fsevents>":
"fsevents@patch:fsevents@^2.1.2#./patches/fsevents.patch::locator=%40jest%2Fmonorepo%40workspace%3A.":
version: 2.2.1
resolution: "fsevents@patch:fsevents@npm%3A2.2.1#builtin<compat/fsevents>::version=2.2.1&hash=11e9ea"
resolution: "fsevents@patch:fsevents@npm%3A2.2.1#./patches/fsevents.patch::version=2.2.1&hash=ee4332&locator=%40jest%2Fmonorepo%40workspace%3A."
dependencies:
node-gyp: latest
checksum: 6ccb7efcb79e504f4361f344413927e5aaf0789e1498c58f0c27cd7031bf84e50830395241eac79c20e99498a0352f08223f1e9e7aa5f19bbae00bdac17ab2a5
checksum: af204dab4aa0332571dd19aafcccf3e597dbf21fa975f92cb64af2151e3f65ad26a7d6fc0b6d8d9c800285996afb738f8f9db7005c6b497d9256c04910ad1416
languageName: node
linkType: hard

"fsevents@patch:fsevents@patch%3Afsevents@^2.1.2%23./patches/fsevents.patch%3A%3Alocator=%2540jest%252Fmonorepo%2540workspace%253A.#builtin<compat/fsevents>":
version: 2.2.1
resolution: "fsevents@patch:fsevents@patch%3Afsevents@npm%253A2.2.1%23./patches/fsevents.patch%3A%3Aversion=2.2.1&hash=ee4332&locator=%2540jest%252Fmonorepo%2540workspace%253A.#builtin<compat/fsevents>::version=2.2.1&hash=11e9ea"
dependencies:
node-gyp: latest
checksum: 8e9dbb7a60968fd6758148e4d246e1c55f6aae4d258132ae3440712453c28a1c555d9c8393087ec4f1d3e90576715ba395e0cda20905ec8eae6be61d20bf4d19
languageName: node
linkType: hard

Expand Down

0 comments on commit e12a302

Please sign in to comment.