Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1787

"in-source" config bleeds into node_modules?

$
0
0

Hi folks.
I am trying to write a node script in rescript, deployed as an npm package.
My scripts package depends on a second rescript npm package, that itself has in-source: true so it can import a js implementation file @module('./impl.js'). All fine so far. But if i configure my outer package without in-source, the installed node module is not built according to its own configuration, and then the rescript files there, now built into lib/ fail to find the relative ./impl.js.

It seems to me that each package should honor its own bsconfig, or maybe builds in-source: false should copy relative files to the dist directory? Otherwise there is a pressure for all packages to eventually build in-source, and I’m sure people have their own reasons for building to a lib dir. Whats the right pattern here?

TIA
Alex


Viewing all articles
Browse latest Browse all 1787

Trending Articles