Skip to content

Trying Out Prerelease Versions

Daniel O'Grady edited this page Jul 31, 2024 · 6 revisions

When addressing a reported issue with a pull request, the feature is usually not immediately merged into main and released to npm. Instead, it will be bundled with a few other fixes and improvements and released in a timely manner.

You can try out these fixes beforehand with two methods:

Branch Installation

In most cases, it is sufficient to just install the branch the fix is contained in via npm in your project:

npm i https://github.com/cap-js/cds-typer.git\#<name of the branch containing the fix>

so if you wanted to check out the contents of this PR before its release, the command would be:

npm i https://github.com/cap-js/cds-typer.git\#refactor/logger

Local Installation

This is useful if you find yourself trying out fixes regularly or if you want to fiddle around with the code yourself:

git clone https://github.com/cap-js/cds-typer 
cd cds-typer
git checkout <name of the branch containing the fix>
npm i
npm link
cd <location of your node project>
npm link @cap-js/cds-typer

This will use the locally checked out version of cds-typer in your project.

Calling npm install in your repository again will remove that link and install cds-typer from npm again.

Clone this wiki locally