Skip to content

Commit

Permalink
fix: add @types/googlepay as a direct dependenct for @google-pay/butt…
Browse files Browse the repository at this point in the history
…on-angular
  • Loading branch information
Soc Sieng committed Nov 14, 2020
1 parent 2bdefb5 commit d796162
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/button-angular/README.md
Expand Up @@ -5,7 +5,7 @@ This is the Angular component for the Google Pay button.
## Installation

```sh
npm install @google-pay/button-angular @types/googlepay
npm install @google-pay/button-angular
```

## Example usage: Angular website
Expand Down
2 changes: 1 addition & 1 deletion src/button-angular/ng-package.json
Expand Up @@ -4,5 +4,5 @@
"lib": {
"entryFile": "../angular-public-api.ts"
},
"whitelistedNonPeerDependencies": ["tslib"]
"whitelistedNonPeerDependencies": ["@types/googlepay", "tslib"]
}
5 changes: 3 additions & 2 deletions src/button-angular/package-template.json
Expand Up @@ -17,7 +17,9 @@
"scripts": {
"build": "ng build --prod"
},
"dependencies": {},
"dependencies": {
"@types/googlepay": "^0.5.1"
},
"peerDependencies": {
"@angular/core": ">=8.0.0",
"@types/googlepay": "^0.5.1"
Expand All @@ -38,7 +40,6 @@
"devDependencies": {
"@angular-devkit/build-ng-packagr": "^0.1002.0",
"@angular/core": "^10.2.2",
"@types/googlepay": "^0.5.1",
"ng-packagr": "^10.1.2"
}
}

0 comments on commit d796162

Please sign in to comment.