diff --git a/.jest.js b/.jest.js index be003ba592..be5659849c 100644 --- a/.jest.js +++ b/.jest.js @@ -20,10 +20,10 @@ module.exports = { }, testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node'], transform: { - '\\.tsx?$': './node_modules/antd-tools/lib/jest/codePreprocessor', - '\\.js$': './node_modules/antd-tools/lib/jest/codePreprocessor', - '\\.md$': './node_modules/antd-tools/lib/jest/demoPreprocessor', - '\\.(jpg|png|gif|svg)$': './node_modules/antd-tools/lib/jest/imagePreprocessor', + '\\.tsx?$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', + '\\.js$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', + '\\.md$': './node_modules/@ant-design/tools/lib/jest/demoPreprocessor', + '\\.(jpg|png|gif|svg)$': './node_modules/@ant-design/tools/lib/jest/imagePreprocessor', }, testRegex: `${libDir === 'dist' ? 'demo' : '.*'}\\.test\\.js$`, collectCoverageFrom: [ diff --git a/.jest.node.js b/.jest.node.js index 55e3cef03f..b1d5ee86b9 100644 --- a/.jest.node.js +++ b/.jest.node.js @@ -6,10 +6,10 @@ module.exports = { moduleFileExtensions: ['ts', 'tsx', 'js', 'md'], moduleNameMapper, transform: { - '\\.tsx?$': './node_modules/antd-tools/lib/jest/codePreprocessor', - '\\.js$': './node_modules/antd-tools/lib/jest/codePreprocessor', - '\\.md$': './node_modules/antd-tools/lib/jest/demoPreprocessor', - '\\.(jpg|png|gif|svg)$': './node_modules/antd-tools/lib/jest/imagePreprocessor', + '\\.tsx?$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', + '\\.js$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', + '\\.md$': './node_modules/@ant-design/tools/lib/jest/demoPreprocessor', + '\\.(jpg|png|gif|svg)$': './node_modules/@ant-design/tools/lib/jest/imagePreprocessor', }, testRegex: 'demo\\.test\\.js$', testEnvironment: 'node', diff --git a/scripts/update-rc.js b/scripts/update-rc.js index 8f7e46f3ea..84bfe7e112 100755 --- a/scripts/update-rc.js +++ b/scripts/update-rc.js @@ -4,4 +4,4 @@ 'use strict'; -require('antd-tools/lib/updateComponents')(name => !!name.match(/^rc-/)); +require('@ant-design/tools/lib/updateComponents')(name => !!name.match(/^rc-/)); diff --git a/site/bisheng.config.js b/site/bisheng.config.js index 7b57976fb8..439005b408 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -1,6 +1,6 @@ const path = require('path'); const CSSSplitWebpackPlugin = require('css-split-webpack-plugin').default; -const replaceLib = require('antd-tools/lib/replaceLib'); +const replaceLib = require('@ant-design/tools/lib/replaceLib'); const isDev = process.env.NODE_ENV === 'development'; const usePreact = process.env.REACT_ENV === 'preact'; diff --git a/tslint.json b/tslint.json index 3bfa6d9a6c..1b61109a69 100644 --- a/tslint.json +++ b/tslint.json @@ -1,3 +1,3 @@ { - "extends": ["./node_modules/antd-tools/lib/tslint.json"] + "extends": ["./node_modules/@ant-design/tools/lib/tslint.json"] } diff --git a/webpack.config.js b/webpack.config.js index 9bd7822a4f..0b01f92d9d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,6 @@ /* eslint no-param-reassign: 0 */ // This config is for building dist files -const getWebpackConfig = require('antd-tools/lib/getWebpackConfig'); +const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig'); const PacktrackerPlugin = require('@packtracker/webpack-plugin'); const { webpack } = getWebpackConfig;