mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-24 02:20:01 +08:00
ff52bbcc86
* chore(deps): update dependency chalk to v5 * migrate chalk * Update .github/workflows/test.yml Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
29 lines
891 B
TypeScript
29 lines
891 B
TypeScript
import $ from 'dekko';
|
|
import chalk from 'chalk';
|
|
|
|
$('lib').isDirectory().hasFile('index.js').hasFile('index.d.ts');
|
|
|
|
$('lib/*')
|
|
.filter(
|
|
(filename: string) => !['index.js', 'index.d.ts', '.map'].some((ext) => filename.endsWith(ext)),
|
|
)
|
|
.isDirectory()
|
|
.filter((filename: string) => !['style', '_util', 'locale'].some((ext) => filename.endsWith(ext)))
|
|
.hasFile('index.js')
|
|
.hasFile('index.d.ts');
|
|
|
|
console.log(chalk.green('✨ `lib` directory is valid.'));
|
|
|
|
$('es').isDirectory().hasFile('index.js').hasFile('index.d.ts');
|
|
|
|
$('es/*')
|
|
.filter(
|
|
(filename: string) => !['index.js', 'index.d.ts', '.map'].some((ext) => filename.endsWith(ext)),
|
|
)
|
|
.isDirectory()
|
|
.filter((filename: string) => !['style', '_util', 'locale'].some((ext) => filename.endsWith(ext)))
|
|
.hasFile('index.js')
|
|
.hasFile('index.d.ts');
|
|
|
|
console.log(chalk.green('✨ `es` directory is valid.'));
|