mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 14:44:47 +08:00
23 lines
584 B
JavaScript
23 lines
584 B
JavaScript
|
const $ = require('dekko');
|
||
|
const chalk = require('chalk');
|
||
|
|
||
|
$('lib').isDirectory().hasFile('index.js').hasFile('index.d.ts');
|
||
|
|
||
|
$('lib/*')
|
||
|
.filter(
|
||
|
(filename) =>
|
||
|
!filename.endsWith('index.js') &&
|
||
|
!filename.endsWith('index.d.ts') &&
|
||
|
!filename.endsWith('.map'),
|
||
|
)
|
||
|
.isDirectory()
|
||
|
.filter(
|
||
|
(filename) =>
|
||
|
!filename.endsWith('style') && !filename.endsWith('_util') && !filename.endsWith('locale'),
|
||
|
)
|
||
|
.hasFile('index.js')
|
||
|
.hasFile('index.d.ts');
|
||
|
|
||
|
// eslint-disable-next-line no-console
|
||
|
console.log(chalk.green('✨ `lib` directory is valid.'));
|