The project use husky and lint-staged for linting and fixing possible errors on source code before commit
Git hooks scripts are installed after running npm install
the first time
Compile typescript files from the src
folder without emitting the sources
Compile typescript files from the src
folder, excluding *.test.ts
file, inside the dist
folder
Remove the following directories/files
- .tmp
- dist
Run *.test.ts
files under the src
folder
The same as node --run test
and generates coverages reports in .tmp/reports/coverage
. Exit with code > 0 on error
- Format and lint
typescript
andjson
files according tobiome.json
. - Format
markdown
files according to.pretterrc.json
.
- Bump
package.json
version accordingly to the commit messages - Generate changelog for the new version from the commit messages
- Commit
package.json
andCHANGELOG.md
with the new changes - Create a git tag with the new version
- You'll need to execute
git push --follow-tags origin main
after generating a release