diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index 35b591d70..7e1d8c39d 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -108,12 +108,12 @@ function babelify(js, modules) { let stream = js.pipe(babel(babelConfig)).pipe( through2.obj(function z(file, encoding, next) { this.push(file.clone()); - if (file.path.match(/\/style\/index\.(js|jsx)$/)) { + if (file.path.match(/\/style\/index\.(js|jsx|ts|tsx)$/)) { const content = file.contents.toString(encoding); file.contents = Buffer.from( content.replace(/\/style\/?'/g, "/style/css'").replace(/\.less/g, '.css'), ); - file.path = file.path.replace(/index\.(js|jsx)$/, 'css.js'); + file.path = file.path.replace(/index\.(js|jsx|ts|tsx)$/, 'css.js'); this.push(file); next(); } else { diff --git a/components/badge/style/index.js b/components/badge/style/index.ts similarity index 100% rename from components/badge/style/index.js rename to components/badge/style/index.ts diff --git a/components/card/style/index.js b/components/card/style/index.ts similarity index 100% rename from components/card/style/index.js rename to components/card/style/index.ts diff --git a/components/carousel/style/index.js b/components/carousel/style/index.ts similarity index 100% rename from components/carousel/style/index.js rename to components/carousel/style/index.ts diff --git a/components/color-picker/style/index.js b/components/color-picker/style/index.ts similarity index 100% rename from components/color-picker/style/index.js rename to components/color-picker/style/index.ts diff --git a/components/config-provider/style/index.js b/components/config-provider/style/index.ts similarity index 100% rename from components/config-provider/style/index.js rename to components/config-provider/style/index.ts diff --git a/components/dropdown/style/index.js b/components/dropdown/style/index.ts similarity index 100% rename from components/dropdown/style/index.js rename to components/dropdown/style/index.ts diff --git a/components/form/style/index.js b/components/form/style/index.ts similarity index 100% rename from components/form/style/index.js rename to components/form/style/index.ts diff --git a/components/locale-provider/style/index.js b/components/locale-provider/style/index.ts similarity index 100% rename from components/locale-provider/style/index.js rename to components/locale-provider/style/index.ts diff --git a/components/modal/style/index.js b/components/modal/style/index.ts similarity index 100% rename from components/modal/style/index.js rename to components/modal/style/index.ts diff --git a/components/progress/style/index.js b/components/progress/style/index.ts similarity index 100% rename from components/progress/style/index.js rename to components/progress/style/index.ts diff --git a/components/radio/style/index.js b/components/radio/style/index.ts similarity index 100% rename from components/radio/style/index.js rename to components/radio/style/index.ts diff --git a/components/statistic/style/index.js b/components/statistic/style/index.ts similarity index 100% rename from components/statistic/style/index.js rename to components/statistic/style/index.ts diff --git a/components/tabs/style/index.js b/components/tabs/style/index.ts similarity index 100% rename from components/tabs/style/index.js rename to components/tabs/style/index.ts diff --git a/components/tag/style/index.js b/components/tag/style/index.ts similarity index 100% rename from components/tag/style/index.js rename to components/tag/style/index.ts diff --git a/components/transfer/style/index.js b/components/transfer/style/index.js deleted file mode 100644 index b7eb1d789..000000000 --- a/components/transfer/style/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import '../../style/index.less'; -import './index.less'; - -// style dependencies -import '../../empty/style'; -import '../../checkbox/style'; -import '../../button/style'; -import '../../input/style'; diff --git a/components/version/index.js b/components/version/index.ts similarity index 100% rename from components/version/index.js rename to components/version/index.ts diff --git a/components/version/style/index.js b/components/version/style/index.ts similarity index 100% rename from components/version/style/index.js rename to components/version/style/index.ts