mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 12:28:33 +08:00
d689c7b855
* feat: remove locale-provider * chore: fix lint * Empty-Commit * test: remove test * Revert "test: remove test" This reverts commit 4f6b59883f6bf078f21a10898ef913c9e2adb913. * chore: 阶段性兼容 * fix lint * fix: fix lint * fix: add index * docs: update docs * docs: update * docs: update * docs: update
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.'));
|