pkl-community / pkl-typescript

TypeScript language bindings for the Pkl programming language
https://www.npmjs.com/package/@pkl-community/pkl-typescript
Apache License 2.0
104 stars 1 forks source link

Make `@pkl-community/pkl` a peerDependency, and use it for the Pkl binary by default #31

Closed jasongwartz closed 7 months ago

jasongwartz commented 7 months ago

Currently pkl-typescript doesn't depend on @pkl-community/pkl, which means the user can choose what underlying version of Pkl they want to use. However, that means pkl must be installed on the host.

If we make @pkl-community/pkl a peerDependency, and use it in the evaluator by default, we could get a much nicer "first-run" experience - ideally npm install @pkl-community/pkl-typescript @pkl-community/pkl would work out-of-the-box with no other host dependencies. Users could still override the PKL_EXEC env var to use a custom binary.