File tree Expand file tree Collapse file tree 3 files changed +4
-34
lines changed Expand file tree Collapse file tree 3 files changed +4
-34
lines changed Original file line number Diff line number Diff line change @@ -137,15 +137,6 @@ const { argv } = require('yargs');
137
137
) ;
138
138
versions = await prompt ( versionUpdates ) ;
139
139
140
- /**
141
- * Remove the skipped packages
142
- */
143
- Object . keys ( versions ) . forEach ( name => {
144
- if ( versions [ name ] === 'skip' ) {
145
- delete versions [ name ] ;
146
- }
147
- } ) ;
148
-
149
140
/**
150
141
* Verify that the versions selected are correct
151
142
*/
Original file line number Diff line number Diff line change @@ -105,30 +105,6 @@ exports.packageVersionUpdate = async (package, releaseType) => {
105
105
] ;
106
106
}
107
107
108
- /**
109
- * Skip a pacakage
110
- *
111
- * Reason:
112
- * Lerna doesn't work well with merge commits and may mark a package as changed
113
- * even though it's not changed except for the version bump from the last release.
114
- * https://github.com/lerna/lerna/issues/1377
115
- *
116
- * Background:
117
- * We introduced a release branch as a staging area for the next release
118
- * while development continues in the master branch. Eventually we publish the packages from
119
- * the release branch and make the version bumps in package.json and tags. It creats a merge
120
- * commit in the master branch when we merge the release branch back.
121
- *
122
- * Only skip a package if you are sure Lerna listed the package in mistake.
123
- * If you skipped a package, it won't show up in the candidate list going forward
124
- * unless additional changes are made in this package.
125
- *
126
- */
127
- choices . push ( {
128
- name : chalk `Skip` ,
129
- value : 'skip'
130
- } ) ;
131
-
132
108
/**
133
109
* Create prompts
134
110
*/
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ function getLernaUpdateJson() {
25
25
try {
26
26
if ( cache ) return cache ;
27
27
28
- const result = await exec ( 'lerna updated --json' , {
28
+ let { stdout : lastTag } = await exec ( 'git describe --tags --abbrev=0' ) ;
29
+ lastTag = lastTag . trim ( ) ;
30
+
31
+ const result = await exec ( `lerna ls --since ${ lastTag } --json` , {
29
32
env : npmRunPath . env ( ) ,
30
33
cwd : root
31
34
} ) ;
You can’t perform that action at this time.
0 commit comments