Make @swc/core an optional peer dependency of cli-node

The node transform config is only loaded at runtime when running
backend processes, so @swc/core should not be a hard dependency
for all cli-node consumers.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-16 13:03:17 +01:00
parent 4d081452b1
commit 92b0f79d9c
+8 -1
View File
@@ -36,7 +36,6 @@
"@backstage/errors": "workspace:^",
"@backstage/types": "workspace:^",
"@manypkg/get-packages": "^1.1.3",
"@swc/core": "^1.15.6",
"@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "^3.0.0",
"chalk": "^4.0.0",
@@ -52,5 +51,13 @@
"@backstage/cli": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@types/yarnpkg__lockfile": "^1.1.4"
},
"peerDependencies": {
"@swc/core": "^1.15.6"
},
"peerDependenciesMeta": {
"@swc/core": {
"optional": true
}
}
}