Skip to content

Change TS and CLI at the same time

Fernando Dodino edited this page Sep 19, 2024 · 2 revisions

Local changes for TS & CLI

If you need to change Wollok-TS and Wollok-TS CLI at the same time, you can test it locally without releasing a new version for Wollok-TS. Here's how to achieve it.

Note: you can apply the same strategy for other Wollok dependencies like wollok-web-tools

Changes in Wollok-TS

You can change the code in Wollok-TS, and build it by doing

npm run build

Upgrading Wollok-TS local dependency in CLI

In order to use our new local build from Wollok-TS, we need to install the local version. Go to CLI root folder and run

npm i ../wollok-ts  # if ts-cli folder is sibling from ts

You should see this dependency in Wollok-TS CLI package.json file:

  "dependencies": {
    ...
    "wollok-ts": "file:../wollok-ts",

From now on you can go to the developer environment page and run CLI locally.