From cf27e246ce24be72330cce4dd68a463dba8bf529 Mon Sep 17 00:00:00 2001 From: Luna Wei Date: Mon, 5 Jun 2023 23:25:18 -0700 Subject: [PATCH] Fix rm (#37706) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37706 Changelog: [Internal] Fix wrong usage of shelljs `rm` Reviewed By: NickGerleman Differential Revision: D46450762 fbshipit-source-id: 9e519222642421b596827675af38f643fa84c9f7 --- scripts/monorepo/publish-nightly-for-each-changed-package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/monorepo/publish-nightly-for-each-changed-package.js b/scripts/monorepo/publish-nightly-for-each-changed-package.js index 1c04d722180..38ee594e7e4 100644 --- a/scripts/monorepo/publish-nightly-for-each-changed-package.js +++ b/scripts/monorepo/publish-nightly-for-each-changed-package.js @@ -54,7 +54,7 @@ function hasChanges( ); // delete tarball and restore package.json changes - rm({cwd: packageAbsolutePath}, localTarballName); + rm(path.join(packageAbsolutePath, localTarballName)); restore(packageAbsolutePath); return diff.trim().length !== 0;