Skip to content

Commit

Permalink
chore: v3.0.0-beta.20
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Aug 23, 2022
1 parent 864d819 commit 7ec746f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fes.js",
"version": "3.0.0-beta.19",
"version": "3.0.0-beta.20",
"description": "一个好用的前端管理台快速开发框架",
"preferGlobal": true,
"private": true,
Expand Down Expand Up @@ -70,4 +70,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/fes-builder-vite/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
17 changes: 10 additions & 7 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7ec746f

Please sign in to comment.