From 6a3d00f98561b22bc1bdeb54a0905985de068b21 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: Sat, 25 Jan 2025 18:15:11 +0800 Subject: [PATCH] chore: bump father plugin --- .fatherrc.js | 9 ++------- package.json | 11 ++++++----- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.fatherrc.js b/.fatherrc.js index 7414da0..4ddbafd 100644 --- a/.fatherrc.js +++ b/.fatherrc.js @@ -1,10 +1,5 @@ import { defineConfig } from 'father'; export default defineConfig({ - platform: 'browser', - cjs: { output: 'lib' }, - esm: { - output: 'es', - alias: { 'rc-util/lib': 'rc-util/es' }, - }, -}); + plugins: ['@rc-component/father-plugin'], +}); \ No newline at end of file diff --git a/package.json b/package.json index 2c0dbbd..7a27970 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rc-component/tour", - "version": "1.15.1", + "version": "2.0.0-0", "description": "React tour Component", "keywords": [ "react", @@ -33,7 +33,7 @@ "lint:tsc": "tsc -p tsconfig.json --noEmit", "now-build": "npm run docs:build", "prepare": "dumi setup", - "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish", + "prepublishOnly": "npm run compile && rc-np", "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", "start": "dumi dev", "test": "umi-test", @@ -47,22 +47,23 @@ "rc-util": "^5.24.4" }, "devDependencies": { + "@rc-component/father-plugin": "^2.0.3", + "@rc-component/np": "^1.0.3", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^15.0.0", "@types/jest": "^29.0.0", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@umijs/fabric": "^2.5.2", + "cheerio": "1.0.0-rc.12", "dumi": "^2.1.2", "eslint": "^7.18.0", - "father": "^4.0.0-rc.8", + "father": "^4.0.0", "gh-pages": "^3.1.0", - "np": "^5.0.3", "prettier": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "typescript": "^5.0.0", - "cheerio": "1.0.0-rc.12", "umi-test": "^1.9.7" }, "peerDependencies": {