Skip to content

Commit

Permalink
chore: update script
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Oct 26, 2022
1 parent 855189e commit e39962e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/rc-test-migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const semver = require("semver");
const fs = require("fs-extra");

const VER_FATHER = "father";
const VER_PLUGIN = "@rc-component/father-plugin";
const RM_DEPS = ["jest", "father-build", "react-test-renderer"];

const cwd = process.cwd();
Expand All @@ -20,6 +21,7 @@ if (fatherVer) {
if (fatherMajor < 4) {
console.log("Upgrading father version to ^4.0.0 ...");
pkg.devDependencies[VER_FATHER] = "^4.0.0";
pkg.devDependencies[VER_PLUGIN] = "^1.0.0";

console.log("Override .fatherrc...");
fs.writeFileSync(
Expand Down

0 comments on commit e39962e

Please sign in to comment.