@@ -20,7 +20,6 @@ function start() {
20
20
build,
21
21
devserver,
22
22
release,
23
- "release-major" : releaseMajor ,
24
23
install,
25
24
clean,
26
25
commit,
@@ -203,16 +202,6 @@ function updateDependencyVersion(pkg, version) {
203
202
return changed
204
203
}
205
204
206
- function updateAllDependencyVersions ( version ) {
207
- for ( let pkg of packages ) {
208
- let pkgFile = join ( pkg . dir , "package.json" ) , text = fs . readFileSync ( pkgFile , "utf8" )
209
- let updated = text . replace ( / ( " @ c o d e m i r r o r \/ [ ^ " ] + " : " ) ( [ ^ " ] + ) " / g, ( _ , m , old ) => {
210
- return m + ( / b u i l d h e l p e r / . test ( m ) ? old : "^" + version ) + '"'
211
- } )
212
- fs . writeFileSync ( pkgFile , updated )
213
- }
214
- }
215
-
216
205
function version ( pkg ) {
217
206
return require ( join ( pkg . dir , "package.json" ) ) . version
218
207
}
@@ -263,15 +252,6 @@ function doRelease(pkg, newVersion, {edit = false, defaultChanges = null}) {
263
252
return { changes, newVersion}
264
253
}
265
254
266
- function releaseMajor ( ) {
267
- let versions = packages . map ( version ) , prev = Math . max ( ...versions . map ( v => + v . split ( "." ) [ 1 ] ) )
268
- let newVersion = `0.${ prev + 1 } .0`
269
- updateAllDependencyVersions ( newVersion )
270
- for ( let pkg of packages ) doRelease ( pkg , newVersion , {
271
- defaultChanges : { fix : [ ] , feature : [ ] , breaking : [ "Update dependencies to " + newVersion ] }
272
- } )
273
- }
274
-
275
255
function editReleaseNotes ( notes ) {
276
256
let noteFile = join ( root , "notes.txt" )
277
257
fs . writeFileSync ( noteFile , notes . head + notes . body )
0 commit comments