Skip to content

Commit

Permalink
Apply fixups for v0.1.0 release (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
roluk authored Apr 4, 2022
1 parent 108ad06 commit 0db38a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion presentation-rules-editor-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"release": "ts-node --transpile-only ../scripts/src/finalizeRelease.ts"
},
"license": "MIT",
"private": true,
"author": {
"name": "Bentley Systems, Inc.",
"url": "https://www.bentley.com"
Expand Down
6 changes: 3 additions & 3 deletions scripts/src/finalizeRelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { execSync } from "child_process";
import { execFileSync } from "child_process";
import * as fs from "fs";
import * as path from "path";

Expand Down Expand Up @@ -57,8 +57,8 @@ const updatedChangelogContent = changelogContent
fs.writeFileSync(changelogFilePath, updatedChangelogContent);

try {
execSync(`git add ${packageJsonFilePath} ${changelogFilePath}`);
execSync(`git commit -e -m \"Release ${packageName}@${packageVersion}\"`);
execFileSync("git", ["add", packageJsonFilePath, changelogFilePath]);
execFileSync("git", ["commit", "-e", "-m", `Release ${packageName}@${packageVersion}`]);
} catch (error) {
console.error(error instanceof Error ? `${error.name}: ${error.message}` : "Could not commit file changes.");
process.exit(1);
Expand Down

0 comments on commit 0db38a0

Please sign in to comment.