Skip to content

Commit

Permalink
releases: 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jun 28, 2020
1 parent 415df03 commit f6f9206
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
26 changes: 10 additions & 16 deletions lib/package.json
Original file line number Diff line number Diff line change
@@ -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 <cipchk@qq.com>",
"author": "cipchk <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/"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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'",
Expand Down
20 changes: 17 additions & 3 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,30 @@ 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
.ngPackagr()
.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);
});

0 comments on commit f6f9206

Please sign in to comment.