Skip to content

Commit

Permalink
Removed unused "git" and "workspace" keys from the ckeditor5-dev-util…
Browse files Browse the repository at this point in the history
…s diretory.
  • Loading branch information
pomek committed Aug 29, 2024
1 parent 7739dd0 commit 6a60fe5
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 747 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"postinstall": "node ./scripts/postinstall.js",
"test": "yarn run test:build-tools && yarn run test:js",
"test:build-tools": "yarn workspace @ckeditor/ckeditor5-dev-build-tools run test",
"test:js": "mocha 'packages/*/tests/**/*.js' --timeout 10000 --ignore 'packages/ckeditor5-dev-build-tools/**'",
"test:js": "mocha 'packages/ckeditor5-dev-utils/tests/**/*.js' --timeout 10000 --ignore 'packages/ckeditor5-dev-build-tools/**'",
"coverage": "nyc --reporter=lcov --reporter=text-summary yarn run test",
"changelog": "node ./scripts/changelog.js",
"release:prepare-packages": "node ./scripts/preparepackages.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,3 @@ module.exports = function parseArguments( args ) {
}
}
};

185 changes: 0 additions & 185 deletions packages/ckeditor5-dev-utils/lib/git.js

This file was deleted.

10 changes: 9 additions & 1 deletion packages/ckeditor5-dev-utils/lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,16 @@ module.exports = {
const fs = require( 'fs' );
const pth = require( 'path' );

const isDirectory = path => {
try {
return fs.statSync( path ).isDirectory();
} catch ( e ) {
return false;
}
};

return fs.readdirSync( path ).filter( item => {
return this.isDirectory( pth.join( path, item ) );
return isDirectory( pth.join( path, item ) );
} );
},

Expand Down
108 changes: 0 additions & 108 deletions packages/ckeditor5-dev-utils/lib/workspace.js

This file was deleted.

Loading

0 comments on commit 6a60fe5

Please sign in to comment.