Skip to content

Commit

Permalink
wrap canary identifier in quotes so terminal understands it's an argu…
Browse files Browse the repository at this point in the history
…ment to the --preid flag
  • Loading branch information
hipstersmoothie committed Mar 11, 2021
1 parent f494c7a commit 069be34
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}"`,
...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}"`] : []),
...verboseArgs,
]);

Expand Down

0 comments on commit 069be34

Please sign in to comment.