Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.37 KB

CONTRIBUTING.md

File metadata and controls

44 lines (28 loc) · 1.37 KB

Contributing to DTS

Thanks for your interest in DTS! You are very welcome to contribute. If you are proposing a new feature, make sure to open an issue to make sure it is inline with the project goals.

Setup

  1. First, remove any existing dts-cli global installations that may conflict.

    yarn global remove dts-cli # or npm uninstall -g dts-cli
    
  2. Fork this repository to your own GitHub account and clone it to your local device:

    git clone https://github.com/your-name/dts-cli.git
    cd dts-cli
    
  3. Install the dependencies and build the TypeScript files to JavaScript:

    npm i && npm run build
    

    Note: you'll need to run npm run build any time you want to see your changes, or run npm run watch to leave it in watch mode.

  4. Make it so running dts anywhere will run your local dev version:

    yarn link
    
  1. To use your local version when running npm run build/npm start/npm test in a DTS project, run this in the project:

    npm link dts-cli
    

    You should see a success message: success Using linked package for "dts". The project will now use the locally linked version instead of a copy from node_modules.

Submitting a PR

Be sure to run npm test before you make your PR to make sure you haven't broken anything.