From cbd18828fc53eeca7e382d7ac53309dd90540a01 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 29 May 2023 13:19:20 +0200 Subject: [PATCH] Remove resolutions when syncing deps --- scripts/syncLocalDependencies.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/syncLocalDependencies.js b/scripts/syncLocalDependencies.js index d7bc8643bb..1c402e9a44 100755 --- a/scripts/syncLocalDependencies.js +++ b/scripts/syncLocalDependencies.js @@ -51,3 +51,10 @@ workspaces.forEach(workspace => { ) } }) + +const rootPackageJson = JSON.parse(fs.readFileSync("package.json", "utf-8")) +delete rootPackageJson["resolutions"] +fs.writeFileSync( + "package.json", + JSON.stringify(rootPackageJson, null, 2) + "\n" +)