@ingram-tech/nk-dev 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/run.js +5 -0
  2. package/package.json +1 -1
package/lib/run.js CHANGED
@@ -33,6 +33,11 @@ export function run(tool, args = [], opts = {}) {
33
33
  export function runCapture(tool, args = [], opts = {}) {
34
34
  const res = spawnSync("bun", ["x", tool, ...args], {
35
35
  encoding: "utf8",
36
+ // Node's default is 1 MiB, after which the child is killed with ENOBUFS
37
+ // and the caller sees a crash instead of the tool's output. A tsc run
38
+ // with a few thousand errors is well past that — exactly the run whose
39
+ // output matters most. 256 MiB is far beyond any real checker output.
40
+ maxBuffer: 256 * 1024 * 1024,
36
41
  ...opts,
37
42
  });
38
43
  if (res.error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-tech/nk-dev",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "The nextkit dev toolchain in one package: the `nk` CLI plus shared oxlint/oxfmt, TypeScript, and Vitest config, the format-on-commit hook, and the AI agent guide. `nk init` scaffolds a site to use it.",
5
5
  "license": "MIT",
6
6
  "type": "module",