Skip to content

Commit 8349594

Browse files
committed
patch fbjs-scripts
1 parent babb77b commit 8349594

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
},
145145
"resolutions": {
146146
"@types/jest/jest-diff": "^25.1.0",
147-
"@types/jest/pretty-format": "^25.1.0"
147+
"@types/jest/pretty-format": "^25.1.0",
148+
"fbjs-scripts": "patch:fbjs-scripts@^1.1.0#./patches/fbjs-scripts.patch"
148149
}
149150
}

patches/fbjs-scripts.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/jest/createCacheKeyFunction.js b/jest/createCacheKeyFunction.js
2+
index 890918962daebefedee59a48cd02906447f9de5b..3955d97208c753c1208342d045adbce5b569eb57 100644
3+
--- a/jest/createCacheKeyFunction.js
4+
+++ b/jest/createCacheKeyFunction.js
5+
@@ -31,7 +31,7 @@ function getGlobalCacheKey(files, values) {
6+
}
7+
8+
function getCacheKeyFunction(globalCacheKey) {
9+
- return (src, file, configString, options) => {
10+
+ return (src, file, options) => {
11+
const {instrument, config} = options;
12+
const rootDir = config && config.rootDir;
13+

yarn.lock

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8998,7 +8998,7 @@ __metadata:
89988998
languageName: node
89998999
linkType: hard
90009000

9001-
"fbjs-scripts@npm:^1.1.0":
9001+
fbjs-scripts@^1.1.0:
90029002
version: 1.2.0
90039003
resolution: "fbjs-scripts@npm:1.2.0"
90049004
dependencies:
@@ -9016,6 +9016,24 @@ __metadata:
90169016
languageName: node
90179017
linkType: hard
90189018

9019+
"fbjs-scripts@patch:fbjs-scripts@^1.1.0#./patches/fbjs-scripts.patch::locator=%40jest%2Fmonorepo%40workspace%3A.":
9020+
version: 1.2.0
9021+
resolution: "fbjs-scripts@patch:fbjs-scripts@npm%3A1.2.0#./patches/fbjs-scripts.patch::version=1.2.0&hash=48439e&locator=%40jest%2Fmonorepo%40workspace%3A."
9022+
dependencies:
9023+
"@babel/core": ^7.0.0
9024+
ansi-colors: ^1.0.1
9025+
babel-preset-fbjs: ^3.2.0
9026+
core-js: ^2.4.1
9027+
cross-spawn: ^5.1.0
9028+
fancy-log: ^1.3.2
9029+
object-assign: ^4.0.1
9030+
plugin-error: ^0.1.2
9031+
semver: ^5.1.0
9032+
through2: ^2.0.0
9033+
checksum: 80f8e19c09cf8fe91a4afafb11632b9dc165a70ad1391f2d8ca78f884d4d5807a90e40835f7ca70fe061ffdf50b6f885e404cfab0074da0278921807d3c39e9f
9034+
languageName: node
9035+
linkType: hard
9036+
90199037
"fbjs@npm:^1.0.0":
90209038
version: 1.0.0
90219039
resolution: "fbjs@npm:1.0.0"

0 commit comments

Comments
 (0)