From f6f9206513ae0bb6a3e1305801a3ce15556e19ce Mon Sep 17 00:00:00 2001 From: cipchk Date: Sun, 28 Jun 2020 19:56:41 +0800 Subject: [PATCH] releases: 10.0.0 --- lib/package.json | 26 ++++++++++---------------- package.json | 4 ++-- scripts/build.js | 20 +++++++++++++++++--- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/lib/package.json b/lib/package.json index 9185c30..d5e251c 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,26 +1,20 @@ { - "name": "ngx-highlight-js", - "version": "10.0.1", - "description": "Simple, easy and performance countdown for angular", + "name": "angular-baidu-maps", + "version": "10.0.0", + "description": "Angular Baidu Maps Components", "keywords": [ - "ngx-highlight-js", - "ng-countdown", - "angular-countdown", - "angular countdown", - "countdown", - "count down" + "angular-baidu-maps", + "ng2-baidu-maps", + "baidu maps" ], - "author": "cipchk ", + "author": "cipchk ", "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/cipchk/ngx-highlight-js" + "url": "git+https://github.com/cipchk/angular-baidu-maps.git" }, "bugs": { - "url": "https://github.com/cipchk/ngx-highlight-js/issues" + "url": "https://github.com/cipchk/angular-baidu-maps/issues" }, - "homepage": "https://cipchk.github.io/ngx-highlight-js/", - "peerDependencies": { - "@angular/core": "~10.0.0" - } + "homepage": "https://cipchk.github.io/angular-baidu-maps/" } diff --git a/package.json b/package.json index bb37489..b8209a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-baidu-maps", - "version": "10.0.1", + "version": "10.0.0", "description": "Angular Baidu Maps Components", "keywords": [ "angular-baidu-maps", @@ -16,7 +16,7 @@ "bugs": { "url": "https://github.com/cipchk/angular-baidu-maps/issues" }, - "homepage": "https://github.com/cipchk/angular-baidu-maps#readme", + "homepage": "https://cipchk.github.io/angular-baidu-maps/", "scripts": { "analyze": "ng build --prod --stats-json", "lint": "tslint -p tsconfig.json -c tslint.json 'lib/*/*.ts'", diff --git a/scripts/build.js b/scripts/build.js index ffcbeb4..f132e6b 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -8,7 +8,16 @@ const libPackagePath = path.resolve(root, `./lib/package.json`); // Update version const rootPackageJson = require(path.resolve(root, `./package.json`)); const libPackageJson = require(libPackagePath); -libPackageJson.version = rootPackageJson.version; +[ + 'version', + 'description', + 'keywords', + 'author', + 'license', + 'repository', + 'bugs', + 'homepage', +].forEach((key) => (libPackageJson[key] = rootPackageJson[key])); fs.writeJsonSync(libPackagePath, libPackageJson, { spaces: 2 }); ngPackage @@ -16,8 +25,13 @@ ngPackage .forProject(path.resolve(root, `./lib/ng-package.json`)) .withTsConfig(path.resolve(root, './lib/tsconfig.lib.json')) .build() - .then(() => fs.copyFileSync(path.resolve(root, `./README.md`), path.resolve(root, `./publish/README.md`))) - .catch(error => { + .then(() => + fs.copyFileSync( + path.resolve(root, `./README.md`), + path.resolve(root, `./publish/README.md`), + ), + ) + .catch((error) => { console.error(error); process.exit(1); });