Skip to content

Commit

Permalink
Merge pull request #1864 from intuit/slack-message-space
Browse files Browse the repository at this point in the history
wrap canary identifier in quotes so terminal understands it's an argument to the --preid flag
  • Loading branch information
hipstersmoothie committed Mar 11, 2021
2 parents ae8ad56 + 78d3f6c commit b8b05b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/npm/src/index.ts
Expand Up @@ -1053,7 +1053,7 @@ export default class NPMPlugin implements IPlugin {
"--exact",
"--ignore-scripts",
"--preid",
canaryIdentifier,
canaryIdentifier.replace(/^-/, ''),
...verboseArgs,
]);

Expand All @@ -1078,7 +1078,7 @@ export default class NPMPlugin implements IPlugin {
"--no-git-reset", // so we can get the version that just published
"--no-git-tag-version", // no need to tag and commit,
"--exact", // do not add ^ to canary versions, this can result in `npm i` resolving the wrong canary version
...(isIndependent ? ["--preid", canaryIdentifier] : []),
...(isIndependent ? ["--preid", canaryIdentifier.replace(/^-/, '')] : []),
...verboseArgs,
]);

Expand Down

0 comments on commit b8b05b9

Please sign in to comment.