Skip to content

Commit 59a511b

Browse files
authored
fix(dependencies): move babel-plugin-macros to optional peer (#60)
fixes #47 In the strictest sense, this is a breaking change, but I don't think this is realistic, as someone using babel-plugin-macros only through the transitive dependencies of this package would be rare
1 parent 9004729 commit 59a511b

File tree

2 files changed

+8
-40
lines changed

2 files changed

+8
-40
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@
3535
"url": "https://github.com/dmnd/dedent/issues"
3636
},
3737
"homepage": "https://github.com/dmnd/dedent",
38-
"dependencies": {
38+
"peerDependencies": {
3939
"babel-plugin-macros": "^3.1.0"
4040
},
41+
"peerDependenciesMeta": {
42+
"babel-plugin-macros": {
43+
"optional": true
44+
}
45+
},
4146
"devDependencies": {
4247
"@babel/cli": "^7.21.5",
4348
"@babel/core": "^7.21.8",

yarn.lock

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,13 +1090,6 @@
10901090
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
10911091
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
10921092

1093-
"@babel/runtime@^7.12.5":
1094-
version "7.22.5"
1095-
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.5.tgz#8564dd588182ce0047d55d7a75e93921107b57ec"
1096-
integrity sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==
1097-
dependencies:
1098-
regenerator-runtime "^0.13.11"
1099-
11001093
"@babel/runtime@^7.8.4":
11011094
version "7.21.5"
11021095
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.5.tgz#8492dddda9644ae3bda3b45eabe87382caee7200"
@@ -1738,11 +1731,6 @@
17381731
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.3.tgz#b31eb300610c3835ac008d690de6f87e28f9b878"
17391732
integrity sha512-pg9d0yC4rVNWQzX8U7xb4olIOFuuVL9za3bzMT2pu2SU0SNEi66i2qrvhE2qt0HvkhuCaWJu7pLNOt/Pj8BIrw==
17401733

1741-
"@types/parse-json@^4.0.0":
1742-
version "4.0.0"
1743-
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
1744-
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
1745-
17461734
"@types/prettier@^2.1.5":
17471735
version "2.7.2"
17481736
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.2.tgz#6c2324641cc4ba050a8c710b2b251b377581fbf0"
@@ -1977,15 +1965,6 @@ babel-plugin-jest-hoist@^29.5.0:
19771965
"@types/babel__core" "^7.1.14"
19781966
"@types/babel__traverse" "^7.0.6"
19791967

1980-
babel-plugin-macros@^3.1.0:
1981-
version "3.1.0"
1982-
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz#9ef6dc74deb934b4db344dc973ee851d148c50c1"
1983-
integrity sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==
1984-
dependencies:
1985-
"@babel/runtime" "^7.12.5"
1986-
cosmiconfig "^7.0.0"
1987-
resolve "^1.19.0"
1988-
19891968
babel-plugin-polyfill-corejs2@^0.3.3:
19901969
version "0.3.3"
19911970
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122"
@@ -2246,17 +2225,6 @@ core-js@^3.27.2:
22462225
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.30.2.tgz#6528abfda65e5ad728143ea23f7a14f0dcf503fc"
22472226
integrity sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==
22482227

2249-
cosmiconfig@^7.0.0:
2250-
version "7.1.0"
2251-
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6"
2252-
integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==
2253-
dependencies:
2254-
"@types/parse-json" "^4.0.0"
2255-
import-fresh "^3.2.1"
2256-
parse-json "^5.0.0"
2257-
path-type "^4.0.0"
2258-
yaml "^1.10.0"
2259-
22602228
cross-spawn@^7.0.2, cross-spawn@^7.0.3:
22612229
version "7.0.3"
22622230
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
@@ -3629,7 +3597,7 @@ parent-module@^1.0.0:
36293597
dependencies:
36303598
callsites "^3.0.0"
36313599

3632-
parse-json@^5.0.0, parse-json@^5.2.0:
3600+
parse-json@^5.2.0:
36333601
version "5.2.0"
36343602
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
36353603
integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
@@ -3835,7 +3803,7 @@ resolve.exports@^2.0.0:
38353803
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800"
38363804
integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==
38373805

3838-
resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0:
3806+
resolve@^1.14.2, resolve@^1.20.0:
38393807
version "1.22.2"
38403808
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f"
38413809
integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==
@@ -4277,11 +4245,6 @@ yallist@^4.0.0:
42774245
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
42784246
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
42794247

4280-
yaml@^1.10.0:
4281-
version "1.10.2"
4282-
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
4283-
integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
4284-
42854248
yaml@^2.1.1:
42864249
version "2.3.1"
42874250
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b"

0 commit comments

Comments
 (0)