From 92b0f79d9ce65e9f2c8024dbefc71bcaffbf8b9b Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 16 Mar 2026 13:03:17 +0100 Subject: [PATCH] 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 Made-with: Cursor --- packages/cli-node/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/cli-node/package.json b/packages/cli-node/package.json index e266088176..483b0eccff 100644 --- a/packages/cli-node/package.json +++ b/packages/cli-node/package.json @@ -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 + } } }