From e39962e17099b9cf8ca9e670e6e45d3c6ec4e34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 26 Oct 2022 12:07:27 +0800 Subject: [PATCH] chore: update script --- bin/rc-test-migrate.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/rc-test-migrate.js b/bin/rc-test-migrate.js index 51c2d16..4140aea 100755 --- a/bin/rc-test-migrate.js +++ b/bin/rc-test-migrate.js @@ -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(); @@ -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(