Skip to content

Commit 5583f21

Browse files
committed
fix patch-package
- don't hoist dependencies that are patched, this way we can be assured the path is always correct - put all patches in root postinstall so postinstall-postinstall is guaranteed to work
1 parent cb0f32b commit 5583f21

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@
220220
"packages/*"
221221
],
222222
"nohoist": [
223-
"@packages/driver/*"
223+
"@packages/driver/*",
224+
"@packages/socket/has-binary2"
224225
]
225226
},
226227
"lint-staged": {

packages/driver/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"clean-deps": "rm -rf node_modules",
77
"cypress:open": "node ../../scripts/cypress open --project ./test",
88
"cypress:run": "node ../../scripts/cypress run --project ./test",
9-
"postinstall": "npx patch-package",
109
"start": "$(yarn bin coffee) test/support/server.coffee"
1110
},
1211
"devDependencies": {

packages/driver/patches/sinon+8.1.1.patch renamed to patches/@packages+driver++sinon+8.1.1.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/node_modules/sinon/lib/sinon/util/core/function-to-string.js b/node_modules/sinon/lib/sinon/util/core/function-to-string.js
1+
diff --git a/node_modules/@packages/driver/node_modules/sinon/lib/sinon/util/core/function-to-string.js b/node_modules/@packages/driver/node_modules/sinon/lib/sinon/util/core/function-to-string.js
22
index fa0265b..a50bdf6 100644
3-
--- a/node_modules/sinon/lib/sinon/util/core/function-to-string.js
4-
+++ b/node_modules/sinon/lib/sinon/util/core/function-to-string.js
3+
--- a/node_modules/@packages/driver/node_modules/sinon/lib/sinon/util/core/function-to-string.js
4+
+++ b/node_modules/@packages/driver/node_modules/sinon/lib/sinon/util/core/function-to-string.js
55
@@ -9,8 +9,12 @@ module.exports = function toString() {
66
thisValue = this.getCall(i).thisValue;
77

patches/has-binary2+1.0.3.patch renamed to patches/@packages+socket++has-binary2+1.0.3.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/node_modules/has-binary2/index.js b/node_modules/has-binary2/index.js
1+
diff --git a/node_modules/@packages/socket/node_modules/has-binary2/index.js b/node_modules/@packages/socket/node_modules/has-binary2/index.js
22
index cf756a3..277ed03 100644
3-
--- a/node_modules/has-binary2/index.js
4-
+++ b/node_modules/has-binary2/index.js
3+
--- a/node_modules/@packages/socket/node_modules/has-binary2/index.js
4+
+++ b/node_modules/@packages/socket/node_modules/has-binary2/index.js
55
@@ -4,19 +4,19 @@
66
* Module requirements.
77
*/

0 commit comments

Comments
 (0)