syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Standalone package of bsrefmt

Open lassik opened this issue 4 years ago • 2 comments

/usr/local/lib/node_modules/bs-platform takes 138 megabytes of space. Would it be hard to ship the code formatter, bsrefmt, as a separate package? I'm making a Docker container with many formatters in it, in which case >100M is a lot for one formatter.

lassik avatar Feb 25 '21 11:02 lassik

@lassik so your docker image is to support the Reason syntax(legacy) or the new ReScript syntax?

bobzhang avatar Feb 26 '21 02:02 bobzhang

Ideally both.

If I'm not mistaken, this is the current situation:

  • Reason is formatted using bsrefmt.
  • ReScript is formatted using bsc -format.

And both commands come from the npm bs-platform package.

lassik avatar Feb 26 '21 10:02 lassik

The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.

stale[bot] avatar May 28 '23 23:05 stale[bot]