purescript-language-server icon indicating copy to clipboard operation
purescript-language-server copied to clipboard

Support configuring spago file/target

Open nwolverson opened this issue 3 years ago • 0 comments

Currently spago.dhall is hardwired to

  • Detect PureScript "projects" (as one of several options)
  • Serve as the config for spago sources (by virtue of being the default)

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` 

nwolverson avatar Feb 03 '22 10:02 nwolverson