From e16b17b5642f4c27549b3cba0f3a33ee4049913c Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Tue, 3 Dec 2019 22:07:17 +0800 Subject: [PATCH] fix: dist build pipline --- .antd-tools.config.js | 2 +- tests/dekko/dist.test.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.antd-tools.config.js b/.antd-tools.config.js index e7a23e3f8f..320af6c026 100644 --- a/.antd-tools.config.js +++ b/.antd-tools.config.js @@ -70,7 +70,7 @@ function finalizeDist() { console.log('Built a entry less file to dist/antd-dark.less'); // Build antd-dark.js: dist/antd-dark.js, for less-loader - const stylePath = path.join(process.cwd(), 'lib', 'style'); + const stylePath = path.join(process.cwd(), 'components', 'style'); const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8'); const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8'); diff --git a/tests/dekko/dist.test.js b/tests/dekko/dist.test.js index d4518721b3..f587f22569 100644 --- a/tests/dekko/dist.test.js +++ b/tests/dekko/dist.test.js @@ -9,7 +9,9 @@ $('dist') .hasFile('antd.min.css') .hasFile('antd.js') .hasFile('antd.min.js') - .hasFile('antd.less'); + .hasFile('antd.less') + .hasFile('antd-dark.less') + .hasFile('antd-dark.js'); // eslint-disable-next-line console.log(chalk.green('✨ `dist` directory is valid.'));