chore: Upgrade devDeps (#32308)

* chore: node-fetch => isomorphic-fetch

* upgrade array-move

* fix test
This commit is contained in:
afc163 2021-09-26 18:21:15 +08:00 committed by GitHub
parent 47d28e8f70
commit 268bdf2faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ const transformIgnorePatterns = [
'/dist/',
// Ignore modules without es dir.
// Update: @babel/runtime should also be transformed
'node_modules/(?!.*@(babel|ant-design))[^/]+?/(?!(es|node_modules)/)',
'node_modules/(?!.*@(babel|ant-design))(?!array-move)[^/]+?/(?!(es|node_modules)/)',
];
function getTestRegex(libDir) {

View File

@ -180,7 +180,7 @@
"antd-pro-merge-less": "^3.0.11",
"antd-theme-generator": "^1.2.3",
"argos-cli": "^0.3.0",
"array-move": "^3.0.0",
"array-move": "^4.0.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^3.0.0",
"bisheng-plugin-description": "^0.1.4",
@ -222,6 +222,7 @@
"immutability-helper": "^3.0.0",
"inquirer": "^8.0.0",
"intersection-observer": "^0.12.0",
"isomorphic-fetch": "^3.0.0",
"jest": "^27.0.3",
"jest-image-snapshot": "^4.5.1",
"jest-puppeteer": "^6.0.0",
@ -231,7 +232,6 @@
"less-vars-to-js": "^1.3.0",
"lz-string": "^1.4.4",
"mockdate": "^3.0.0",
"node-fetch": "^2.0.0",
"open": "^8.0.1",
"prettier": "^2.3.2",
"prettier-plugin-jsdoc": "^0.3.0",

View File

@ -1,7 +1,7 @@
/* eslint-disable import/no-dynamic-require, no-console */
const chalk = require('chalk');
const path = require('path');
const fetch = require('node-fetch');
const fetch = require('isomorphic-fetch');
const simpleGit = require('simple-git/promise');
const cwd = process.cwd();

View File

@ -1,6 +1,6 @@
/* eslint-disable no-await-in-loop */
/* eslint-disable no-restricted-syntax */
const fetch = require('node-fetch');
const fetch = require('isomorphic-fetch');
const { join } = require('path');
const cheerio = require('cheerio');
const glob = require('glob');

View File

@ -3,7 +3,7 @@ const chalk = require('chalk');
const { spawn } = require('child_process');
const jsdom = require('jsdom');
const jQuery = require('jquery');
const fetch = require('node-fetch');
const fetch = require('isomorphic-fetch');
const open = require('open');
const fs = require('fs-extra');
const path = require('path');