Skip to content

Commit

Permalink
feat: add ng-package, require angular 14 (#477)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires angular 14
  • Loading branch information
rnsoon committed Feb 5, 2024
1 parent 30a5733 commit e04615e
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 242 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
"ng": "ng",
"start": "ng serve",
"prebuild": "del-cli dist",
"build": "ng-packagr -p src/lib/package.json",
"build": "ng-packagr -p src/lib/ng-package.json",
"postbuild": "cpy README.md LICENSE dist",
"test": "ng test --watch=false --browsers=ChromeCI",
"test:ci": "ng test --code-coverage --watch=false --no-progress --browsers=ChromeCI",
Expand Down
7 changes: 7 additions & 0 deletions src/lib/ng-package.json
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public_api.ts"
},
"dest": "../../dist"
}
13 changes: 3 additions & 10 deletions src/lib/package.json
@@ -1,5 +1,4 @@
{
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "angulartics2",
"description": "Vendor-agnostic web analytics for Angular2 applications",
"version": "0.0.0-placeholder",
Expand Down Expand Up @@ -32,15 +31,9 @@
"baidu",
"pyze"
],
"ngPackage": {
"lib": {
"entryFile": "public_api.ts"
},
"dest": "../../dist"
},
"peerDependencies": {
"@angular/common": ">=13.0.0-0",
"@angular/core": ">=13.0.0-0",
"rxjs": "^7.0.0"
"@angular/common": ">=14.0.0-0",
"@angular/core": ">=14.0.0-0",
"rxjs": "^7.4.0"
}
}

0 comments on commit e04615e

Please sign in to comment.