| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/usr/bin/env node
- /**
- * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- /* eslint-env node */
- 'use strict';
- // In order to use the same version for all packages (including builds and ckeditor5 itself), you can call:
- // yarn run changelog [newVersion]
- const devEnv = require( '@ckeditor/ckeditor5-dev-env' );
- const commonOptions = {
- cwd: process.cwd(),
- packages: 'packages'
- };
- const editorBuildsGlob = '@ckeditor/ckeditor5-build-*';
- const optionsForDependencies = Object.assign( {}, commonOptions, {
- skipPackages: editorBuildsGlob,
- skipMainRepository: true
- } );
- const optionsForBuilds = Object.assign( {}, commonOptions, {
- scope: editorBuildsGlob
- } );
- Promise.resolve()
- .then( () => devEnv.generateChangelogForSubRepositories( optionsForDependencies ) )
- .then( response => devEnv.generateSummaryChangelog( Object.assign( optionsForBuilds, response ) ) )
- .then( () => {
- console.log( 'Done!' );
- } )
- .catch( err => {
- console.error( err.stack );
- } );
|