Post

Released dprint 0.55—a pluggable and configurable code formatting platform that unifies all your formatters behind a single command. This substantial release lets you specify formatting plugins from npm.

Excited for npm resolution just because it means maybe I can not merge my PR that vendors all of the wasm blobs into the TS repo (I think a firewall is going to start denying the plugin domain) Hopefully the other plugins out there start publishing... I need to start publishing the dprint one there

0 reposts0 likes

Oh, I didn't realize there was a PR open to vendor them. Good you don't have to merge that lol. Things like firewall rules was one of the motivations behind this. Also, I had people in Iran complain it wasn't accessible, but usually they already have something setup to access npm.

Then again I don't really want to use the name @jakebailey/gofumpt for a plugin, so I guess I'll still call it @jakebailey/dprint-plugin-gofumpt

You could make the package multi-purpose maybe. I don't think there's a gofumpt formatter on npm. For example, place a plugin.wasm file for the dprint plugin, and then have an index.js with an api for formatting with gofumpt via that Wasm file in JavaScript.

Btw, of you specify any dependencies, dprint won't download them (only the initial package) because all it's interested in is the plugin.wasm file.