Browse Source

chore: Upgrade devDeps (#32308)

* chore: node-fetch => isomorphic-fetch

* upgrade array-move

* fix test
pull/32315/head
afc163 3 years ago
committed by GitHub
parent
commit
268bdf2faa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .jest.js
  2. 4
      package.json
  3. 2
      scripts/check-commit.js
  4. 2
      scripts/check-site.js
  5. 2
      scripts/print-changelog.js

2
.jest.js

@ -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) {

4
package.json

@ -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",

2
scripts/check-commit.js

@ -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();

2
scripts/check-site.js

@ -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');

2
scripts/print-changelog.js

@ -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');

Loading…
Cancel
Save