From 4772dc0b9f4a5f2fc4805e6bb86d4331f01c63df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <7971419+crazyair@users.noreply.github.com> Date: Wed, 20 May 2020 10:38:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复依赖问题 * docs: doc Co-authored-by: 黄建峰 --- docs/changelog.md | 6 ++++++ package.json | 7 ------- packages/yforms/package.json | 11 +++++++++-- scripts/getChangeLog.js | 6 +++--- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 3c6c8ce..0caceea 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -5,6 +5,12 @@ nav: order: 5 --- +## [0.8.2](https://github.com/crazyair/yforms/compare/v0.8.1...v0.8.2) (2020-05-20) + +### Bug Fixes + +- 修复依赖问题 ([e693497](https://github.com/crazyair/yforms/commit/e69349760b38fb841e8d76e53b6333d285432bac)) + ## [0.8.1](https://github.com/crazyair/yforms/compare/v0.6.0...v0.8.1) (2020-05-20) - 改名 yforms ([#14](https://github.com/crazyair/yforms/issues/14)) ([1c20a9f](https://github.com/crazyair/yforms/commit/1c20a9fb96aa532750a628a1befde8d6ef6bbf40)) diff --git a/package.json b/package.json index 5550111..9b0e728 100644 --- a/package.json +++ b/package.json @@ -83,14 +83,7 @@ }, "license": "MIT", "dependencies": { - "warning": "^4.0.3", "antd": "^4.2.4", - "@ant-design/icons": "^4.0.3", - "lodash": "^4.17.15", - "moment": "^2.24.0", - "numbro": "^2.2.0", - "nzh": "^1.0.4", - "dayjs": "^1.8.27", "rc-queue-anim": "^1.8.4" } } diff --git a/packages/yforms/package.json b/packages/yforms/package.json index 7010044..d73b70a 100644 --- a/packages/yforms/package.json +++ b/packages/yforms/package.json @@ -1,6 +1,6 @@ { "name": "yforms", - "version": "0.8.1", + "version": "0.8.2", "description": "自定义表单组件", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -29,7 +29,14 @@ "registry": "https://registry.npmjs.org/" }, "dependencies": { - "@babel/runtime": "^7.8.4" + "@babel/runtime": "^7.8.4", + "warning": "^4.0.3", + "antd": "^4.2.4", + "@ant-design/icons": "^4.0.3", + "lodash": "^4.17.15", + "moment": "^2.24.0", + "numbro": "^2.2.0", + "nzh": "^1.0.4" }, "license": "MIT" } diff --git a/scripts/getChangeLog.js b/scripts/getChangeLog.js index f28b1e5..45b7702 100755 --- a/scripts/getChangeLog.js +++ b/scripts/getChangeLog.js @@ -2,19 +2,19 @@ const fs = require('fs'); const { readFileSync } = fs; -const stringFromFile = path => { +const stringFromFile = (path) => { return readFileSync(path, 'utf-8'); }; const text = stringFromFile('./docs/changelog.md'); const versionLogs = text; -const allMatchingWords = versionLogs.split('## '); +const allMatchingWords = versionLogs.split('## ['); let changelog = allMatchingWords[1]; changelog = changelog.replace(/%/g, '%25'); changelog = changelog.replace(/\n/g, '%0A'); changelog = changelog.replace(/\r/g, '%0D'); -const demo = `::set-output name=changelog::## ${changelog}`; +const demo = `::set-output name=changelog::## [${changelog}`; // eslint-disable-next-line no-console console.log(demo);