Skip to content

Commit

Permalink
Merge pull request #2010 from 10hendersonm/revert_1997
Browse files Browse the repository at this point in the history
Revert #1997
  • Loading branch information
hipstersmoothie committed Jun 8, 2021
2 parents 6051e9e + 85e8ecd commit 3f1752f
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 3f1752f

Please sign in to comment.