From 703e44fcd8b906235e4fbc55c7bb91b35d260f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Fri, 8 Mar 2024 11:17:54 +0800 Subject: [PATCH] chore: bump trigger (#474) * chore: bump trigger * docs: fix now build --- now.json | 5 +---- package.json | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/now.json b/now.json index 95f1d90..65cacf1 100644 --- a/now.json +++ b/now.json @@ -5,10 +5,7 @@ { "src": "package.json", "use": "@now/static-build", - "config": { "distDir": ".doc" } + "config": { "distDir": "dist" } } - ], - "routes": [ - { "src": "/(.*)", "dest": "/dist/$1" } ] } diff --git a/package.json b/package.json index 0943366..e83fd83 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,11 @@ ], "scripts": { "compile": "father build && lessc assets/bootstrap.less assets/bootstrap.css && lessc assets/bootstrap_white.less assets/bootstrap_white.css", - "prepare": "dumi setup", "docs:build": "dumi build", "docs:deploy": "gh-pages -d dist", "lint": "eslint src/ --ext .tsx,.ts,.jsx,.js", + "now-build": "npm run docs:build", + "prepare": "dumi setup", "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish", "postpublish": "npm run docs:build && npm run docs:deploy", "start": "dumi dev", @@ -41,7 +42,7 @@ }, "dependencies": { "@babel/runtime": "^7.11.2", - "@rc-component/trigger": "^1.18.0", + "@rc-component/trigger": "^2.0.0", "classnames": "^2.3.1" }, "devDependencies": {