File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ describe("next", () => {
313313 remote : "origin" ,
314314 baseBranch : "master" ,
315315 logger : dummyLog ( ) ,
316- prefixRelease : ( v : string ) => v ,
316+ prefixRelease : ( v : string ) => `v ${ v } ` ,
317317 git : {
318318 getLatestRelease : ( ) => "@foo/1@0.1.0" ,
319319 getLastTagNotInBaseBranch : ( ) => "@foo/1@1.0.0-next.0" ,
Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ function getLegacyAuthArgs(
211211/** Get the args to set the registry. Only used with lerna */
212212async function getRegistryArgs ( ) {
213213 const registry = await getRegistry ( ) ;
214- return registry === DEFAULT_REGISTRY || ! registry ? [ ] : [ "--registry" , registry ] ;
214+ return registry === DEFAULT_REGISTRY || ! registry
215+ ? [ ]
216+ : [ "--registry" , registry ] ;
215217}
216218
217219const pluginOptions = t . partial ( {
@@ -945,7 +947,7 @@ export default class NPMPlugin implements IPlugin {
945947
946948 preReleaseVersions = [
947949 ...preReleaseVersions ,
948- ...tags . map ( auto . prefixRelease ) ,
950+ ...( isIndependent ? tags : tags . map ( auto . prefixRelease ) ) ,
949951 ] ;
950952 } else {
951953 auto . logger . verbose . info ( "Detected single npm package" ) ;
You can’t perform that action at this time.
0 commit comments