Browse Source

🐛 fix error antd-tools => @ant-design/tools

pull/18044/head
afc163 5 years ago
parent
commit
60e66dbafe
  1. 8
      .jest.js
  2. 8
      .jest.node.js
  3. 2
      scripts/update-rc.js
  4. 2
      site/bisheng.config.js
  5. 2
      tslint.json
  6. 2
      webpack.config.js

8
.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: [

8
.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',

2
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-/));

2
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';

2
tslint.json

@ -1,3 +1,3 @@
{
"extends": ["./node_modules/antd-tools/lib/tslint.json"]
"extends": ["./node_modules/@ant-design/tools/lib/tslint.json"]
}

2
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;

Loading…
Cancel
Save