Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acoates-ms committed May 7, 2024
1 parent b8ebacf commit aff372f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions new-release-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ function createNewRelease(newRelease, rnVersion, apptype) {
}
runCmd(`git checkout -b "${branchName}"`, wtAppPath);

// Remove base package.json to avoid workspace issues
require('fs').unlinkSync(path.resolve(__dirname, './package.json'));

runCmd(
`npx --yes react-native init "${appName}" --template react-native@${rnVersion} --skip-install --skip-git-init`,
`npx --yes react-native init "${appName}" --template react-native@${rnVersion} --skip-git-init`,
wtAppPath
);
if (apptype === "mac") {
// Remove base package.json to avoid workspace issues
require('fs').unlinkSync(path.resolve(__dirname, './package.json'));
runCmd(`yarn`, appDir);
runCmd(
`npx --yes react-native-macos-init --version ${newRelease} --overwrite`,
appDir
Expand Down

0 comments on commit aff372f

Please sign in to comment.