diff --git a/packages/@rnw-scripts/beachball-config/package.json b/packages/@rnw-scripts/beachball-config/package.json index 98d60698862..66044554c1e 100644 --- a/packages/@rnw-scripts/beachball-config/package.json +++ b/packages/@rnw-scripts/beachball-config/package.json @@ -27,10 +27,12 @@ "@rnw-scripts/just-task": "2.3.29", "@rnw-scripts/ts-config": "2.0.5", "@types/node": "^18.0.0", + "@types/shell-quote": "^1.7.5", "beachball": "^2.20.0", "eslint": "^8.19.0", "prettier": "2.8.8", - "typescript": "5.0.4" + "typescript": "5.0.4", + "shell-quote": "^1.8.1" }, "files": [ "lib-commonjs" diff --git a/packages/@rnw-scripts/beachball-config/src/beachball.config.ts b/packages/@rnw-scripts/beachball-config/src/beachball.config.ts index 13d20e6386b..38a9c6e9d5a 100644 --- a/packages/@rnw-scripts/beachball-config/src/beachball.config.ts +++ b/packages/@rnw-scripts/beachball-config/src/beachball.config.ts @@ -6,6 +6,7 @@ */ import {execSync} from 'child_process'; +import {quote} from 'shell-quote'; import {findRepoPackageSync} from '@react-native-windows/package-utils'; import type {RepoOptions} from 'beachball/lib/types/BeachballOptions'; @@ -28,7 +29,7 @@ const Options: RepoOptions = { postbump: (_packagePath, name, version) => { if (name === 'react-native-windows') { console.log(`Stamping RNW Version ${version}`); - execSync(`yarn stamp-version ${version}`); + execSync(`yarn stamp-version ` + quote([`${version}`])); } } }, diff --git a/yarn.lock b/yarn.lock index a5d5fee6059..e6bdebdcd59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3160,6 +3160,11 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.7.tgz#326f5fdda70d13580777bcaa1bc6fa772a5aef0e" integrity sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg== +"@types/shell-quote@^1.7.5": + version "1.7.5" + resolved "https://registry.yarnpkg.com/@types/shell-quote/-/shell-quote-1.7.5.tgz#6db4704742d307cd6d604e124e3ad6cd5ed943f3" + integrity sha512-+UE8GAGRPbJVQDdxi16dgadcBfQ+KG2vgZhV1+3A1XmHbmwcdwhCUwIdy+d3pAGrbvgRoVSjeI9vOWyq376Yzw== + "@types/shelljs@^0.8.8": version "0.8.15" resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.8.15.tgz#22c6ab9dfe05cec57d8e6cb1a95ea173aee9fcac" @@ -11374,7 +11379,7 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shell-quote@^1.6.1, shell-quote@^1.7.3: +shell-quote@^1.6.1, shell-quote@^1.7.3, shell-quote@^1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==