fix(bindings/node): Make peer dependency of helpers optional (#7216)

**Description:**

Mark the `@swc/helpers` dependency of `@swc/core` as optional.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7212.
This commit is contained in:
Niklas Mischkulnig 2023-04-06 07:28:08 +02:00 committed by GitHub
parent c6b28f91cc
commit e86d59882a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -136,6 +136,11 @@
"peerDependencies": { "peerDependencies": {
"@swc/helpers": "^0.5.0" "@swc/helpers": "^0.5.0"
}, },
"peerDependenciesMeta": {
"@swc/helpers": {
"optional": true
}
},
"funding": { "funding": {
"type": "opencollective", "type": "opencollective",
"url": "https://opencollective.com/swc" "url": "https://opencollective.com/swc"

View File

@ -2526,6 +2526,9 @@ __metadata:
optional: true optional: true
"@swc/core-win32-x64-msvc": "@swc/core-win32-x64-msvc":
optional: true optional: true
peerDependenciesMeta:
"@swc/helpers":
optional: true
languageName: unknown languageName: unknown
linkType: soft linkType: soft