File tree 6 files changed +26
-26
lines changed
integration-tests/dev-only-patches
6 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exports[`Test dev-only-patches: 00: patch-package happily ignores slash on CI be
5
5
patch-package 0.0.0
6
6
Applying patches...
7
7
left-pad@1.3.0 ✔
8
- Skipping dev-only slash@3 .0.0 ✔
8
+ Skipping dev-only slash@2 .0.0 ✔
9
9
END SNAPSHOT"
10
10
` ;
11
11
@@ -14,12 +14,12 @@ exports[`Test dev-only-patches: 01: patch-package fails to find fake-package 1`]
14
14
patch-package 0.0.0
15
15
Applying patches...
16
16
left-pad@1.3.0 ✔
17
- Skipping dev-only slash@3 .0.0 ✔
17
+ Skipping dev-only slash@2 .0.0 ✔
18
18
Error: Patch file found for package fake-package which is not present at node_modules/fake-package
19
19
20
20
If this package is a dev dependency, rename the patch file to
21
21
22
- fake-package+3 .0.0.dev.patch
22
+ fake-package+2 .0.0.dev.patch
23
23
24
24
---
25
25
patch-package finished with 1 error(s).
@@ -30,8 +30,8 @@ exports[`Test dev-only-patches: 02: fake-package should be skipped 1`] = `
30
30
"SNAPSHOT: fake-package should be skipped
31
31
patch-package 0.0.0
32
32
Applying patches...
33
- Skipping dev-only fake-package@3 .0.0 ✔
33
+ Skipping dev-only fake-package@2 .0.0 ✔
34
34
left-pad@1.3.0 ✔
35
- Skipping dev-only slash@3 .0.0 ✔
35
+ Skipping dev-only slash@2 .0.0 ✔
36
36
END SNAPSHOT"
37
37
` ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ echo "SNAPSHOT: patch-package happily ignores slash on CI because it's a dev dep
13
13
patch-package
14
14
echo " END SNAPSHOT"
15
15
16
- echo " create fake-package+3 .0.0.patch"
17
- cp patches/slash+3 .0.0.patch patches/fake-package+3 .0.0.patch
16
+ echo " create fake-package+2 .0.0.patch"
17
+ cp patches/slash+2 .0.0.patch patches/fake-package+2 .0.0.patch
18
18
19
19
echo " SNAPSHOT: patch-package fails to find fake-package"
20
20
if patch-package
24
24
echo " END SNAPSHOT"
25
25
26
26
echo " rename fake-package patch file to .dev.patch"
27
- mv patches/fake-package+3 .0.0.patch patches/fake-package+3 .0.0.dev.patch
27
+ mv patches/fake-package+2 .0.0.patch patches/fake-package+2 .0.0.dev.patch
28
28
29
29
echo " SNAPSHOT: fake-package should be skipped"
30
30
patch-package
Original file line number Diff line number Diff line change 10
10
"rimraf" : " 3.0.0"
11
11
},
12
12
"devDependencies" : {
13
- "slash" : " 3 .0.0"
13
+ "slash" : " 2 .0.0"
14
14
}
15
15
}
Original file line number Diff line number Diff line change
1
+ diff --git a/node_modules/slash/index.js b/node_modules/slash/index.js
2
+ index 75d7250..bc742e7 100644
3
+ --- a/node_modules/slash/index.js
4
+ +++ b/node_modules/slash/index.js
5
+ @@ -1,5 +1,5 @@
6
+ 'use strict';
7
+ - module.exports = input => {
8
+ + module.patchPackage = input => {
9
+ const isExtendedLengthPath = /^\\\\\?\\/.test(input);
10
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(input); // eslint-disable-line no-control-regex
11
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ inherits@2:
50
50
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
51
51
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
52
52
53
- left-pad@^ 1.3.0 :
53
+ left-pad@1.3.0 :
54
54
version "1.3.0"
55
55
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
56
56
integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==
@@ -74,17 +74,17 @@ path-is-absolute@^1.0.0:
74
74
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
75
75
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
76
76
77
- rimraf@^ 3.0.0 :
77
+ rimraf@3.0.0 :
78
78
version "3.0.0"
79
79
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b"
80
80
integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg==
81
81
dependencies :
82
82
glob "^7.1.3"
83
83
84
- slash@^3 .0.0 :
85
- version "3 .0.0"
86
- resolved "https://registry.yarnpkg.com/slash/-/slash-3 .0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634 "
87
- integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q ==
84
+ slash@2 .0.0 :
85
+ version "2 .0.0"
86
+ resolved "https://registry.yarnpkg.com/slash/-/slash-2 .0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44 "
87
+ integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A ==
88
88
89
89
wrappy@1 :
90
90
version "1.0.2"
You can’t perform that action at this time.
0 commit comments