Skip to content

Commit

Permalink
Merge pull request #47 from Midtrans/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies & bump version to 1.3.1
  • Loading branch information
rizdaprasetya authored Feb 18, 2022
2 parents 4edb963 + 5bb7d71 commit 43c59bd
Show file tree
Hide file tree
Showing 8 changed files with 3,410 additions and 285 deletions.
8 changes: 8 additions & 0 deletions Maintaining.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ npm publish
```

## Updating Dependency via NPM Audit
This method useful to pass NPM Audit. I.e. to pass known security vulnerability of the npm package dependencies, but may not update dependency beyond patch version.
- run `npm audit`
- run `npm audit fix` to fix vuln & update deps if any
- run `npm test` to make sure nothing breaks
- Continue to [Updating Package](#updating-package) section above

### Further Updating Dependency
This method is useful to update dependency to the latest version, including major & minor version. Using updated major & minor version may means the dependency is more stable & have better feature. This was [based from this resource](https://stackoverflow.com/a/16074029).
- run `npm install -g npm-check-updates` to install npm-check-updates helper tool
- run `ncu -u` to auto check & update the npm package.json dependencies' version values
- run `npm install` to install the updated dependencies
- run `npm test` to make sure nothing breaks

## Dev & Test via Docker Compose

- To use docker-compose to test and run project, `cd` to repo dir
Expand Down
Loading

0 comments on commit 43c59bd

Please sign in to comment.