Skip to content

Commit

Permalink
Revert "Merge pull request intuit#1997 from 10hendersonm/canary_doubl…
Browse files Browse the repository at this point in the history
…e_dash"

This reverts commit 1e83684, reversing
changes made to 1f27b91.
  • Loading branch information
Vela CI committed Jun 7, 2021
1 parent 6051e9e commit 85e8ecd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/npm/src/index.ts
Expand Up @@ -1005,9 +1005,6 @@ export default class NPMPlugin implements IPlugin {
}
};

canaryIdentifier = canaryIdentifier.replace(/^-/, "")


if (isMonorepo()) {
const isIndependent = getLernaJson().version === "independent";
auto.logger.verbose.info("Detected monorepo, using lerna");
Expand Down Expand Up @@ -1057,7 +1054,7 @@ export default class NPMPlugin implements IPlugin {
"--exact",
"--ignore-scripts",
"--preid",
canaryIdentifier,
canaryIdentifier.replace(/^-/, ""),
...verboseArgs,
]);

Expand All @@ -1083,7 +1080,7 @@ export default class NPMPlugin implements IPlugin {
"--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]
? ["--preid", canaryIdentifier.replace(/^-/, "")]
: []),
...verboseArgs,
]);
Expand Down

0 comments on commit 85e8ecd

Please sign in to comment.