Tags: reteps/dockerfmt
Tags
fix(release): include the binary in platform package tarballs
Each platform package had a bin/.gitignore ('*') to keep the built binary
out of git. But npm honors .gitignore as .npmignore at pack time, so it
excluded bin/dockerfmt from the published tarball — the packages shipped
only package.json and the .gitignore, so the launcher's require.resolve of
<pkg>/bin/dockerfmt failed at runtime ("does not ship a prebuilt binary").
Keep the binaries out of git via the parent js/.gitignore instead, track
the dirs with bin/.gitkeep, and let npm pack the binary. Verified with
npm pack --dry-run: bin/dockerfmt (7.2MB) is now included.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ci(release): make npm publish idempotent Skip any package version already on the registry so a re-run after a partial publish failure only publishes what's missing, instead of dying when npm rejects republishing an existing version. Consolidate the two publish steps into one so the helper is shared. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat: add dockerfmt-ignore directive and EditorConfig support Add `# dockerfmt-ignore` comment to skip formatting for the next directive — useful as an escape hatch for grouping expressions, unescaped semicolons, or any case where the formatter produces unwanted output. Add EditorConfig support: indent_size, insert_final_newline, and custom space_redirects property are read from .editorconfig files. CLI flags take precedence over EditorConfig values. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix: scope Go WASM constructor to avoid clobbering globalThis.Go Other Go WASM packages (e.g. sh-syntax) that share the same process rely on their own wasm_exec.js setting globalThis.Go. Our import of wasm_exec.js was overwriting it, breaking packages that depend on features like wasi_snapshot_preview1 support. Save the previous globalThis.Go before our wasm_exec.js runs and restore it afterward, stashing our Go class under the namespaced globalThis.__dockerfmt_Go. Also change the package.json version to a dev placeholder since CI already sets it from the release tag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PreviousNext