DulLabs / bhai-lang

A toy programming language written in Typescript
https://bhailang.js.org/
MIT License
3.97k stars 501 forks source link

Where is the executable outputted? #269

Closed Lioncat2002 closed 2 years ago

Lioncat2002 commented 2 years ago

I built the project using npm build but I cannot find where the executable got outputted?

tbhaxor commented 2 years ago

Check for the bin directory in the cli package. The configuration can be found here

Lioncat2002 commented 2 years ago

Ahhh found it thnx :)

Lioncat2002 commented 2 years ago

oh I have another question so I need to run with node index.js test.bhai how do I run it as bhailang test.bhai?

tbhaxor commented 2 years ago

You can use both. Since bhailang is not in the PATH, you have to use ./bhailang test.bhai

Lioncat2002 commented 2 years ago

running with ./bhailang actually shows not found image

tbhaxor commented 2 years ago

The bhailang bin will be available when you install the package for example as you do installs for npm i -g eslint. In this case you are supposed to use node

Lioncat2002 commented 2 years ago

ahhh gotcha