PRs are welcome! You noticed a bug, a possible improvement, or whatever? Any help is always appreciated, so don't hesitate to open one issues!
Before submitting your contribution, please make sure to take a moment and read through the following guide:
This repo is a monorepo using pnpm workspaces. The package manager used to install and link dependencies must be pnpm.
Recommended to installing ni to help switch between repos using different package managers. ni
also provides the handy nr
command which running npm scripts easier:
ni
is equivalent topnpm install
nr test
is equivalent topnpm run test
To develop and test tsupr
package:
-
Fork the
tsupr
repository to your own GitHub account and then clone it to your local device. -
Ensure using the LTS version Node.js (16.x)
-
tsupr
uses pnpm v7. If you are working on multiple projects with different versions of pnpm, it's recommended to enable Corepack by runningcorepack enable
. -
Check out a branch where you can work and commit your changes:
git checkout -b my-awesome-branch
-
Run
pnpm i
intsupr
's root folder -
Run
pnpm run dev
to build sources in watch mode -
Run
pnpm run test
to run tests