From 7ec746f32e9ba665f2d86983e21f82dc278e3e80 Mon Sep 17 00:00:00 2001 From: winixt Date: Tue, 23 Aug 2022 17:49:37 +0800 Subject: [PATCH] chore: v3.0.0-beta.20 --- CHANGELOG.md | 9 +++++++++ package.json | 4 ++-- packages/fes-builder-vite/package.json | 2 +- scripts/release.mjs | 17 ++++++++++------- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce32081f7..1748f25a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# [3.0.0-beta.20](https://github.com/WeBankFinTech/fes.js/compare/v3.0.0-beta.19...v3.0.0-beta.20) (2022-08-23) + + +### Bug Fixes + +* 修复现代浏览器 polyfill 问题 ([#147](https://github.com/WeBankFinTech/fes.js/issues/147)) ([dbbf447](https://github.com/WeBankFinTech/fes.js/commit/dbbf4473624ab8c5876897da1499a71d9eb23312)) + + + # [3.0.0-beta.19](https://github.com/WeBankFinTech/fes.js/compare/v3.0.0-beta.18...v3.0.0-beta.19) (2022-08-18) diff --git a/package.json b/package.json index be9db0a37..85c0d3787 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fes.js", - "version": "3.0.0-beta.19", + "version": "3.0.0-beta.20", "description": "一个好用的前端管理台快速开发框架", "preferGlobal": true, "private": true, @@ -70,4 +70,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} \ No newline at end of file +} diff --git a/packages/fes-builder-vite/package.json b/packages/fes-builder-vite/package.json index 9473f2b60..b79fbcf6e 100644 --- a/packages/fes-builder-vite/package.json +++ b/packages/fes-builder-vite/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/builder-vite", - "version": "3.0.0-beta.11", + "version": "3.0.0-beta.12", "description": "@fesjs/builder-vite", "main": "lib/index.js", "files": [ diff --git a/scripts/release.mjs b/scripts/release.mjs index 07d0770aa..6ac03c2b1 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -67,7 +67,7 @@ async function publishPackage(pkg, runIfNotDry) { function readPackageJson(pkg) { const pkgPath = getPkgRoot(pkg); - return JSON.parse(fs.readFileSync(path.join(pkgPath, 'package.json', 'utf-8'))); + return JSON.parse(fs.readFileSync(path.join(pkgPath, 'package.json'), 'utf-8')); } function writePackageJson(pkg, content) { @@ -170,12 +170,15 @@ function genOtherPkgsVersion(packagesVersion) { noChangedPkgs.forEach((currentPkg) => { const pkgJson = readPackageJson(currentPkg); let isUpdated = false; - Object.keys(pkgJson.dependencies).forEach((npmName) => { - if (pkgs[npmName]) { - isUpdated = true; - pkgJson.dependencies[npmName] = pkgs[npmName].newVersion; - } - }); + + if (pkgJson.dependencies) { + Object.keys(pkgJson.dependencies).forEach((npmName) => { + if (pkgs[npmName]) { + isUpdated = true; + pkgJson.dependencies[npmName] = pkgs[npmName].newVersion; + } + }); + } if (isUpdated) { const oldVersion = pkgJson.version;