nwolverson / purescript-language-server

MIT License
183 stars 41 forks source link

Support configuring spago file/target #175

Open nwolverson opened 2 years ago

nwolverson commented 2 years ago

Currently spago.dhall is hardwired to

The build command (default spago build) is configurable but spago sources is not.

A current pattern for supporting multiple build targets (build, test, etc) is adding multiple spago.dhall files with an import/deps override, which can lead to e.g. test sources not being picked up as source globs.

HOWEVER with the registry project spago is moving to add a concept of build targets, so we should probably move directly to supporting that when it arrives.

Workaround in the meantime (probably): set eg

PURS_IDE_SOURCES=`spago -x test.dhall sources`