• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ckeditor / ckeditor5-package-generator / f4c99530-ae63-40a1-afbe-652cf7f886a6

19 Sep 2024 07:44AM UTC coverage: 100.0%. Remained the same
f4c99530-ae63-40a1-afbe-652cf7f886a6

Pull #189

circleci

web-flow
Bump express from 4.19.2 to 4.21.0

Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #189: Bump express from 4.19.2 to 4.21.0

120 of 120 branches covered (100.0%)

Branch coverage included in aggregate %.

393 of 393 relevant lines covered (100.0%)

9.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/packages/ckeditor5-package-generator/lib/utils/create-directory.js
1
/**
2
 * @license Copyright (c) 2020-2024, CKSource Holding sp. z o.o. All rights reserved.
3
 * For licensing, see LICENSE.md.
4
 */
5

6
'use strict';
7

8
const chalk = require( 'chalk' );
5✔
9
const fs = require( 'fs' );
5✔
10
const mkdirp = require( 'mkdirp' );
5✔
11
const path = require( 'path' );
5✔
12

13
/**
14
 * Checks whether its possible to create a directory, and either creates it or ends the process with an error.
15
 *
16
 * @param {Logger} logger
17
 * @param {String} packageName
18
 */
19
module.exports = function createDirectory( logger, packageName ) {
5✔
20
        const directoryName = packageName.split( '/' )[ 1 ];
4✔
21
        const directoryPath = path.resolve( directoryName );
4✔
22

23
        logger.process( `Checking whether the "${ chalk.cyan( directoryName ) }" directory can be created.` );
4✔
24

25
        if ( fs.existsSync( directoryPath ) ) {
4✔
26
                logger.error( 'Cannot create a directory as the location is already taken.' );
1✔
27
                logger.error( 'Aborting.' );
1✔
28

29
                process.exit( 1 );
1✔
30
        }
31

32
        logger.process( `Creating the directory "${ chalk.cyan( directoryPath ) }".` );
4✔
33

34
        mkdirp.sync( directoryPath );
4✔
35

36
        return { directoryName, directoryPath };
4✔
37
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc