Skip to content

Commit 736bc40

Browse files
committed
fix(scripts): correctly update config file, push playground
1 parent 080e5db commit 736bc40

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/release/updateAPIVersions.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function updateVersionForJavascript(
7272
Object.values(GENERATORS)
7373
.filter((gen) => gen.language === 'javascript')
7474
.forEach((gen) => {
75-
const additionalProperties = gen.additionalProperties!;
75+
const additionalProperties = gen.additionalProperties;
7676
const newVersion = semver.inc(
7777
additionalProperties.packageVersion,
7878
jsVersion.releaseType
@@ -101,6 +101,10 @@ async function updateVersionForJavascript(
101101
browserPgPackageFile.dependencies[additionalProperties.packageName] =
102102
newVersion;
103103
}
104+
105+
// We don't want this field to be in the final file, it only exists
106+
// in the scripts.
107+
additionalProperties.packageName = undefined;
104108
});
105109

106110
CLIENTS_JS_UTILS.forEach((util) => {
@@ -275,7 +279,7 @@ export async function updateAPIVersions(
275279

276280
console.log(`Pushing updated changes to ${headBranch}`);
277281
const commitMessage = generationCommitText.commitPrepareReleaseMessage;
278-
await run(`git add clients config`, { verbose: true });
282+
await run('git add .', { verbose: true });
279283
if (process.env.LOCAL_TEST_DEV) {
280284
await run(`CI=true git commit -m "${commitMessage} [skip ci]"`, {
281285
verbose: true,

0 commit comments

Comments
 (0)