Skip to content

Commit d796162

Browse files
author
Soc Sieng
committed
fix: add @types/googlepay as a direct dependenct for @google-pay/button-angular
1 parent 2bdefb5 commit d796162

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/button-angular/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the Angular component for the Google Pay button.
55
## Installation
66

77
```sh
8-
npm install @google-pay/button-angular @types/googlepay
8+
npm install @google-pay/button-angular
99
```
1010

1111
## Example usage: Angular website

src/button-angular/ng-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"lib": {
55
"entryFile": "../angular-public-api.ts"
66
},
7-
"whitelistedNonPeerDependencies": ["tslib"]
7+
"whitelistedNonPeerDependencies": ["@types/googlepay", "tslib"]
88
}

src/button-angular/package-template.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"scripts": {
1818
"build": "ng build --prod"
1919
},
20-
"dependencies": {},
20+
"dependencies": {
21+
"@types/googlepay": "^0.5.1"
22+
},
2123
"peerDependencies": {
2224
"@angular/core": ">=8.0.0",
2325
"@types/googlepay": "^0.5.1"
@@ -38,7 +40,6 @@
3840
"devDependencies": {
3941
"@angular-devkit/build-ng-packagr": "^0.1002.0",
4042
"@angular/core": "^10.2.2",
41-
"@types/googlepay": "^0.5.1",
4243
"ng-packagr": "^10.1.2"
4344
}
4445
}

0 commit comments

Comments
 (0)