Skip to content

Commit

Permalink
fix commit message when using npx
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Jan 25, 2021
1 parent 31a4ce4 commit af9f855
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions plugins/npm/__tests__/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ describe("publish", () => {
Auto.SEMVER.patch,
"--no-commit-hooks",
"-m",
'"Bump version to: %s [skip ci]"',
"Bump version to: %s [skip ci]",
"--loglevel",
"silly",
]);
Expand Down Expand Up @@ -519,7 +519,7 @@ describe("publish", () => {
Auto.SEMVER.patch,
"--no-commit-hooks",
"-m",
'"Bump version to: %s [skip ci]"',
"Bump version to: %s [skip ci]",
]);
});

Expand Down Expand Up @@ -554,7 +554,7 @@ describe("publish", () => {
"--yes",
"--no-push",
"-m",
'"Bump version to: %s [skip ci]"',
'\'"Bump version to: %s [skip ci]"\'',
false,
]);
});
Expand Down Expand Up @@ -590,7 +590,7 @@ describe("publish", () => {
"--yes",
"--no-push",
"-m",
'"Bump version to: %s [skip ci]"',
'\'"Bump version to: %s [skip ci]"\'',
false,
]);
});
Expand Down Expand Up @@ -626,7 +626,7 @@ describe("publish", () => {
"--yes",
"--no-push",
"-m",
'"Bump version to: %s [skip ci]"',
'\'"Bump version to: %s [skip ci]"\'',
"--exact",
]);

Expand Down Expand Up @@ -750,7 +750,7 @@ describe("publish", () => {
"1.0.1",
"--no-commit-hooks",
"-m",
'"Bump version to: %s [skip ci]"',
"Bump version to: %s [skip ci]",
]);
});

Expand Down Expand Up @@ -786,7 +786,7 @@ describe("publish", () => {
"--yes",
"--no-push",
"-m",
'"Bump version to: %s [skip ci]"',
'\'"Bump version to: %s [skip ci]"\'',
false,
]);
});
Expand Down
4 changes: 2 additions & 2 deletions plugins/npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ export default class NPMPlugin implements IPlugin {
"-m",
isIndependent
? '"Bump independent versions [skip ci]"'
: JSON.stringify(VERSION_COMMIT_MESSAGE),
: `'"${VERSION_COMMIT_MESSAGE}"'`,
this.exact && "--exact",
...verboseArgs,
]);
Expand All @@ -969,7 +969,7 @@ export default class NPMPlugin implements IPlugin {
latestBump,
"--no-commit-hooks",
"-m",
JSON.stringify(VERSION_COMMIT_MESSAGE),
VERSION_COMMIT_MESSAGE,
...verboseArgs,
]);
auto.logger.verbose.info("Successfully versioned repo");
Expand Down

0 comments on commit af9f855

Please sign in to comment.