To build the project, run:
yarn build # or npm start
This builds to /dist
and runs the project.
Code quality is set up using prettier
.
This project is set up to build for both ESM and CJS. This is acheived by having a base tsconfig (tsconfig.base.json
). This config is then extended by two other tsonfic projects, tsconfig.json
and tsconfig.cjs.json
.
The project is then built twice, once with each of the two profiles. The result is one cjd
and one esm
folder in dist
. After a successful build, package.json
files will be added to each directory with the correct type
key set (commonjs
/module
).
Two actions are added by default:
main
which installs deps w/ cache, lints, and builds on all pushes against a Node and OS matrix