File size: 1,372 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | # Contributing to TSDX
Thanks for your interest in TSDX! You are very welcome to contribute. If you are proposing a new feature, make sure to [open an issue](https://github.com/palmerhq/tsdx/issues/new/choose) to make sure it is inline with the project goals.
## Setup
0. First, remove any existing `tsdx` global installations that may conflict.
```
yarn global remove tsdx # or npm uninstall -g tsdx
```
1. Fork this repository to your own GitHub account and clone it to your local device:
```
git clone https://github.com/your-name/tsdx.git
cd tsdx
```
1. Install the dependencies and build the TypeScript files to JavaScript:
```
yarn && yarn build
```
> **Note:** you'll need to run `yarn build` any time you want to see your changes, or run `yarn watch` to leave it in watch mode.
1. Make it so running `tsdx` anywhere will run your local dev version:
```
yarn link
```
4) To use your local version when running `yarn build`/`yarn start`/`yarn test` in a TSDX project, run this in the project:
```
yarn link tsdx
```
You should see a success message: `success Using linked package for "tsdx".` The project will now use the locally linked version instead of a copy from `node_modules`.
## Submitting a PR
Be sure to run `yarn test` before you make your PR to make sure you haven't broken anything.
|