{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/bunfig.json",
  "title": "Bun configuration",
  "description": "Bun configuration schema for `bunfig.toml`. See https://bun.sh/docs/runtime/bunfig",
  "additionalProperties": true,
  "type": "object",
  "properties": {
    "preload": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#preload",
      "description": "An array or string of scripts/plugins to run before running the file or script\nhttps://bun.sh/docs/runtime/bunfig#preload",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ],
      "examples": [["./preload.ts"]]
    },
    "jsx": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#jsx",
      "description": "Configure how Bun handles JSX. You can also set these fields in the `compilerOptions` of your `tsconfig.json`, but they are supported here as well for non-TypeScript projects\nhttps://bun.sh/docs/runtime/bunfig#jsx\nhttps://www.typescriptlang.org/tsconfig/#jsx",
      "type": "string",
      "examples": ["react"]
    },
    "jsxFactory": {
      "$comment": "https://www.typescriptlang.org/tsconfig#jsxFactory",
      "description": "Specify the function that is used to create JSX elements\nhttps://www.typescriptlang.org/tsconfig#jsxFactory",
      "type": "string",
      "examples": ["h"]
    },
    "jsxFragment": {
      "$comment": "https://www.typescriptlang.org/tsconfig#jsxFragment",
      "description": "Specify the function that is used for JSX fragments\nhttps://www.typescriptlang.org/tsconfig#jsxFragment",
      "type": "string",
      "examples": ["Fragment"]
    },
    "jsxImportSource": {
      "$comment": "https://www.typescriptlang.org/tsconfig#jsxImportSource",
      "description": "Specify the module specifier to be used for importing the JSX factory functions\nhttps://www.typescriptlang.org/tsconfig#jsxImportSource",
      "type": "string",
      "examples": ["react"]
    },
    "smol": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#smol",
      "description": "Enable `smol` mode. This reduces memory usage at the cost of performance\nhttps://bun.sh/docs/runtime/bunfig#smol",
      "type": "boolean",
      "default": false
    },
    "logLevel": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#loglevel",
      "description": "Set the log level. This can be one of `\"debug\"`, `\"warn\"`, or `\"error\"`\nhttps://bun.sh/docs/runtime/bunfig#loglevel",
      "type": "string",
      "enum": ["debug", "warn", "error"],
      "examples": ["debug"]
    },
    "define": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#define",
      "description": "The `define` field allows you to replace certain global identifiers with constant expressions. Bun will replace any usage of the identifier with the expression. The expression should be a JSON string\nhttps://bun.sh/docs/runtime/bunfig#define",
      "type": "object",
      "additionalProperties": true
    },
    "loader": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#loader",
      "description": "Configure how Bun maps file extensions to loaders. This is useful for loading files that aren't natively supported by Bun\nhttps://bun.sh/docs/runtime/bunfig#loader",
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "enum": [
          "jsx",
          "js",
          "ts",
          "tsx",
          "css",
          "file",
          "json",
          "toml",
          "wasm",
          "napi",
          "base64",
          "dataurl",
          "text"
        ]
      }
    },
    "telemetry": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#telemetry",
      "description": "The `telemetry` field permit to enable/disable the analytics records. Bun records bundle timings (so we can answer with data, \"is Bun getting faster?\") and feature usage (e.g., \"are people actually using macros?\"). The request body size is about 60 bytes, so it's not a lot of data. By default the telemetry is enabled.\nhttps://bun.sh/docs/runtime/bunfig#telemetry",
      "type": "boolean",
      "default": true
    },
    "env": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#env",
      "description": "Configure automatic `.env` file loading. By default, Bun automatically loads `.env` files.\nhttps://bun.sh/docs/runtime/bunfig#env",
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "file": {
              "description": "Enable or disable automatic default `.env` file loading.\nhttps://bun.sh/docs/runtime/bunfig#env",
              "type": "boolean"
            }
          }
        }
      ]
    },
    "console": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#console",
      "description": "Configure console output behavior.\nhttps://bun.sh/docs/runtime/bunfig#console",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "depth": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#console-depth",
          "description": "Set the default depth for `console.log()` object inspection. Default `2`\nhttps://bun.sh/docs/runtime/bunfig#console-depth",
          "type": "integer",
          "minimum": 0,
          "default": 2,
          "examples": [3]
        }
      }
    },
    "serve": {
      "$comment": "https://bun.com/docs/runtime/bunfig#serve",
      "description": "Options for `Bun.serve` and `bun run` when serving HTTP.\nhttps://bun.com/docs/runtime/bunfig#serve",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "port": {
          "$comment": "https://bun.com/docs/runtime/bunfig#serve-port",
          "description": "The default port for `Bun.serve` to listen on. Default `3000`. Can also be set via the `BUN_PORT` or `PORT` environment variables, or the `--port` flag.\nhttps://bun.com/docs/runtime/bunfig#serve-port",
          "type": "integer",
          "minimum": 0,
          "maximum": 65535,
          "default": 3000,
          "examples": [3000]
        }
      }
    },
    "test": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#test-runner",
      "description": "Test runner\nhttps://bun.sh/docs/runtime/bunfig#test-runner",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "root": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-root",
          "description": "The root directory to run tests from. Default `.`\nhttps://bun.sh/docs/runtime/bunfig#test-root",
          "type": "string",
          "examples": ["./__tests__"]
        },
        "preload": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-preload",
          "description": "Same as the top-level `preload` field, but only applies to `bun test`\nhttps://bun.sh/docs/runtime/bunfig#test-preload",
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "string"
            }
          ],
          "examples": [["./setup.ts"]]
        },
        "pathIgnorePatterns": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-pathignorepatterns",
          "description": "Exclude files and directories from test discovery using glob patterns. Can be a single string pattern or an array of patterns.\nhttps://bun.sh/docs/runtime/bunfig#test-pathignorepatterns",
          "oneOf": [
            { "type": "string" },
            { "type": "array", "items": { "type": "string" } }
          ]
        },
        "smol": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-smol",
          "description": "Same as the top-level `smol` field, but only applies to `bun test`\nhttps://bun.sh/docs/runtime/bunfig#test-smol",
          "type": "boolean",
          "default": false
        },
        "coverage": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-coverage",
          "description": "Enables coverage reporting. Default `false`. Use `--coverage` to override\nhttps://bun.sh/docs/runtime/bunfig#test-coverage",
          "type": "boolean",
          "default": false
        },
        "coveragePathIgnorePatterns": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-coveragepathignorepatterns",
          "description": "Exclude specific files or file patterns from coverage reports using glob patterns. Can be a single string pattern or an array of patterns.\nhttps://bun.sh/docs/runtime/bunfig#test-coveragepathignorepatterns",
          "oneOf": [
            { "type": "string" },
            { "type": "array", "items": { "type": "string" } }
          ]
        },
        "coverageThreshold": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-coveragethreshold",
          "description": "To specify a coverage threshold. By default, no threshold is set. If your test suite does not meet or exceed this threshold, `bun test` will exit with a non-zero exit code to indicate the failure\nhttps://bun.sh/docs/runtime/bunfig#test-coveragethreshold",
          "oneOf": [
            { "type": "number" },
            {
              "type": "object",
              "additionalProperties": true
            }
          ],
          "examples": [0.9, { "line": 0.7, "function": 0.8, "statement": 0.9 }]
        },
        "coverageSkipTestFiles": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-coverageskiptestfiles",
          "description": "Whether to skip test files when computing coverage statistics. Default false\nhttps://bun.sh/docs/runtime/bunfig#test-coverageskiptestfiles",
          "type": "boolean",
          "default": false
        },
        "coverageIgnoreSourcemaps": {
          "$comment": "https://bun.com/docs/runtime/bunfig#test-coverageignoresourcemaps",
          "description": "Whether to report coverage against transpiled output instead of remapping line numbers through sourcemaps back to the original source. Default `false`. Primarily useful for debugging.\nhttps://bun.com/docs/runtime/bunfig#test-coverageignoresourcemaps",
          "type": "boolean",
          "default": false
        },
        "coverageReporter": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-coveragereporter",
          "description": "By default, coverage reports will be printed to the console. For persistent code coverage reports in CI environments and for other tools use `lcov`\nhttps://bun.sh/docs/runtime/bunfig#test-coveragereporter",
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["text", "lcov"]
          },
          "default": ["text"]
        },
        "coverageDir": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-coveragedir",
          "description": "Set path where coverage reports will be saved. Please notice, that it works only for persistent `coverageReporter` like `lcov`\nhttps://bun.sh/docs/runtime/bunfig#test-coveragedir",
          "type": "string",
          "default": "coverage"
        },
        "randomize": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-randomize",
          "description": "Run tests in random order. Default `false`\nhttps://bun.sh/docs/runtime/bunfig#test-randomize",
          "type": "boolean",
          "default": false
        },
        "seed": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-seed",
          "description": "Set the random seed for test randomization. This requires `randomize` to be `true`.\nhttps://bun.sh/docs/runtime/bunfig#test-seed",
          "type": "integer",
          "minimum": 0,
          "examples": [2444615283]
        },
        "rerunEach": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-reruneach",
          "description": "Re-run each test file a specified number of times. Default `0` (run once).\nhttps://bun.sh/docs/runtime/bunfig#test-reruneach",
          "type": "integer",
          "minimum": 0,
          "default": 0,
          "examples": [3]
        },
        "retry": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-retry",
          "description": "Default retry count for all tests. Failed tests will be retried up to this many times. Default `0` (no retries).\nhttps://bun.sh/docs/runtime/bunfig#test-retry",
          "type": "integer",
          "minimum": 0,
          "default": 0,
          "examples": [3]
        },
        "concurrentTestGlob": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-concurrenttestglob",
          "description": "Glob pattern for test files that should run with concurrent test execution enabled.\nhttps://bun.sh/docs/runtime/bunfig#test-concurrenttestglob",
          "type": "string",
          "examples": ["**/concurrent-*.test.ts"]
        },
        "onlyFailures": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-onlyfailures",
          "description": "When enabled, only failed tests are displayed in the output. Default `false`\nhttps://bun.sh/docs/runtime/bunfig#test-onlyfailures",
          "type": "boolean",
          "default": false
        },
        "reporter": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#test-reporter",
          "description": "Configure the test reporter settings.\nhttps://bun.sh/docs/runtime/bunfig#test-reporter",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "dots": {
              "$comment": "https://bun.sh/docs/runtime/bunfig#test-reporter-dots",
              "description": "Enable the dots reporter. Default `false`\nhttps://bun.sh/docs/runtime/bunfig#test-reporter-dots",
              "type": "boolean",
              "default": false
            },
            "junit": {
              "$comment": "https://bun.sh/docs/runtime/bunfig#test-reporter-junit",
              "description": "Enable JUnit XML reporting and set the output file path.\nhttps://bun.sh/docs/runtime/bunfig#test-reporter-junit",
              "type": "string",
              "examples": ["test-results.xml"]
            }
          }
        },
        "timeout": {
          "$comment": "https://bun.com/docs/test/configuration#default-timeout",
          "description": "Set the default timeout in milliseconds for all tests. This can be overridden by individual tests. Default `5000`\nhttps://bun.com/docs/test/configuration#default-timeout",
          "type": "integer",
          "minimum": 0,
          "default": 5000,
          "examples": [5000]
        }
      }
    },
    "install": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#package-manager",
      "description": "Package management is a complex issue; to support a range of use cases, the behavior of `bun install` can be configured under the `[install]` section\nhttps://bun.sh/docs/runtime/bunfig#package-manager",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "optional": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-optional",
          "description": "Whether to install optional dependencies. Default `true`\nhttps://bun.sh/docs/runtime/bunfig#install-optional",
          "type": "boolean",
          "default": true
        },
        "dev": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-dev",
          "description": "Whether to install development dependencies. Default `true`\nhttps://bun.sh/docs/runtime/bunfig#install-dev",
          "type": "boolean",
          "default": true
        },
        "peer": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-peer",
          "description": "Whether to install peer dependencies. Default `true`\nhttps://bun.sh/docs/runtime/bunfig#install-peer",
          "type": "boolean",
          "default": true
        },
        "production": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-production",
          "description": "Whether bun install will run in \"production mode\". Default `false`\n\nIn production mode, `\"devDependencies\"` are not installed. You can use `--production` in the CLI to override this setting\nhttps://bun.sh/docs/runtime/bunfig#install-production",
          "type": "boolean",
          "default": false
        },
        "exact": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-exact",
          "description": "Whether to set an exact version in package.json. Default `false`\n\nBy default Bun uses caret ranges; if the `latest` version of a package is `2.4.1`, the version range in your `package.json` will be `^2.4.1`. This indicates that any version from `2.4.1` up to (but not including) `3.0.0` is acceptable\nhttps://bun.sh/docs/runtime/bunfig#install-exact",
          "type": "boolean",
          "default": false
        },
        "ignoreScripts": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-ignorescripts",
          "description": "Whether to skip lifecycle scripts during install. Default `false`. Equivalent to the `--ignore-scripts` flag.\n\nWhen `true`, Bun will not run any `preinstall` / `install` / `postinstall` / `prepare` scripts — both for your project and for packages in `trustedDependencies`.\nhttps://bun.com/docs/runtime/bunfig#install-ignorescripts",
          "type": "boolean",
          "default": false
        },
        "concurrentScripts": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-concurrentscripts",
          "description": "The maximum number of concurrent lifecycle scripts to run at once. Defaults to two times the number of CPU cores. Equivalent to the `--concurrent-scripts` flag.\nhttps://bun.com/docs/runtime/bunfig#install-concurrentscripts",
          "type": "integer",
          "minimum": 1,
          "examples": [5]
        },
        "saveTextLockfile": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-savetextlockfile",
          "description": "If false, generate a binary `bun.lockb` instead of a text-based `bun.lock` file when running `bun install` and no lockfile is present\nDefault `true` (since Bun v1.2)\nhttps://bun.sh/docs/runtime/bunfig#install-savetextlockfile",
          "type": "boolean",
          "default": true
        },
        "auto": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-auto",
          "description": "To configure Bun's package auto-install behavior. Default `\"auto\"` — when no `node_modules` folder is found, Bun will automatically install dependencies on the fly during execution\nhttps://bun.sh/docs/runtime/bunfig#install-auto",
          "type": "string",
          "enum": ["auto", "force", "disable", "fallback"],
          "default": "auto"
        },
        "prefer": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-prefer",
          "description": "Configure how Bun resolves package versions against the npm registry when running scripts. Default `\"online\"`.\n\n- `\"online\"` — Check the registry for stale packages as needed.\n- `\"offline\"` — Skip staleness checks and resolve packages from the local cache. Equivalent to `--prefer-offline`.\n- `\"latest\"` — Always check npm for the latest matching versions. Equivalent to `--prefer-latest`.\nhttps://bun.com/docs/runtime/bunfig#install-prefer",
          "type": "string",
          "enum": ["online", "offline", "latest"],
          "default": "online"
        },
        "frozenLockfile": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-frozenlockfile",
          "description": "When true, `bun install` will not update `bun.lock`. Default `false`. If `package.json` and the existing `bun.lock` are not in agreement, this will error\nhttps://bun.sh/docs/runtime/bunfig#install-frozenlockfile",
          "type": "boolean",
          "default": false
        },
        "dryRun": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-dryrun",
          "description": "Whether `bun install` will actually install dependencies. Default `false`. When true, it's equivalent to setting `--dry-run` on all `bun install` commands\nhttps://bun.sh/docs/runtime/bunfig#install-dryrun",
          "type": "boolean",
          "default": false
        },
        "globalDir": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-globaldir",
          "description": "To configure the directory where Bun puts globally installed packages\nhttps://bun.sh/docs/runtime/bunfig#install-globaldir",
          "type": "string",
          "default": "~/.bun/install/global",
          "examples": ["~/.bun/install/global"]
        },
        "globalBinDir": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-globalbindir",
          "description": "To configure the directory where Bun installs globally installed binaries and CLIs\nhttps://bun.sh/docs/runtime/bunfig#install-globalbindir",
          "type": "string",
          "default": "~/.bun/bin",
          "examples": ["~/.bun/bin"]
        },
        "registry": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-registry",
          "description": "The default registry is `https://registry.npmjs.org/`. This can be globally configured in `bunfig.toml`\nhttps://bun.sh/docs/runtime/bunfig#install-registry",
          "oneOf": [
            { "type": "string" },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "url": {
                  "description": "The URL of the registry\nhttps://bun.sh/docs/runtime/bunfig#install-registry",
                  "type": "string",
                  "examples": ["https://registry.npmjs.org"]
                },
                "token": {
                  "description": "The token to use for authentication\nhttps://bun.sh/docs/runtime/bunfig#install-registry",
                  "type": "string",
                  "examples": ["123456"]
                }
              }
            }
          ],
          "default": "https://registry.npmjs.org/",
          "examples": [
            "https://registry.npmjs.org",
            "https://username:password@registry.npmjs.org",
            { "url": "https://registry.npmjs.org", "token": "123456" }
          ]
        },
        "linkWorkspacePackages": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-linkworkspacepackages",
          "description": "Whether to link workspace packages from the monorepo root to their respective `node_modules` directories. Default `true`\nhttps://bun.sh/docs/runtime/bunfig#install-linkworkspacepackages",
          "type": "boolean",
          "default": true
        },
        "scopes": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-scopes",
          "description": "To configure a registry for a particular scope (e.g. `@myorg/<package>`) use `install.scopes`. You can reference environment variables with `$variable` notation\nhttps://bun.sh/docs/runtime/bunfig#install-scopes",
          "type": "object",
          "additionalProperties": true
        },
        "ca": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-ca-and-install-cafile",
          "description": "The CA certificate as a string\nhttps://bun.sh/docs/runtime/bunfig#install-ca-and-install-cafile",
          "type": "string",
          "examples": [
            "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
          ]
        },
        "cafile": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-ca-and-install-cafile",
          "description": "A path to a CA certificate file. The file can contain multiple certificates.\nhttps://bun.sh/docs/runtime/bunfig#install-ca-and-install-cafile",
          "type": "string",
          "examples": ["path/to/cafile"]
        },
        "cache": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-cache",
          "description": "To configure the cache behavior\nhttps://bun.sh/docs/runtime/bunfig#install-cache",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "dir": {
              "description": "The directory to use for the cache\nhttps://bun.sh/docs/runtime/bunfig#install-cache",
              "type": "string",
              "default": "~/.bun/install/cache",
              "examples": ["~/.bun/install/cache"]
            },
            "disable": {
              "description": "When true, don't load from the global cache.\n\nBun may still write to `node_modules/.cache`\nhttps://bun.sh/docs/runtime/bunfig#install-cache",
              "type": "boolean",
              "default": false
            },
            "disableManifest": {
              "description": "When true, always resolve the latest versions from the registry\nhttps://bun.sh/docs/runtime/bunfig#install-cache",
              "type": "boolean",
              "default": false
            }
          }
        },
        "lockfile": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-lockfile",
          "description": "To configure lockfile behavior, use the `install.lockfile` section\nhttps://bun.sh/docs/runtime/bunfig#install-lockfile",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "save": {
              "description": "Whether to generate a lockfile on `bun install`. Default `true`\nhttps://bun.sh/docs/runtime/bunfig#install-lockfile",
              "type": "boolean",
              "default": true
            },
            "print": {
              "description": "Whether to generate a non-Bun lockfile alongside `bun.lock`. (A `bun.lock` will always be created.) Currently `\"yarn\"` is the only supported value\nhttps://bun.sh/docs/runtime/bunfig#install-lockfile",
              "type": "string",
              "const": "yarn"
            }
          }
        },
        "linker": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-linker",
          "description": "Configure the default linker strategy. Default `\"hoisted\"`\nhttps://bun.sh/docs/runtime/bunfig#install-linker",
          "type": "string",
          "enum": ["hoisted", "isolated"],
          "default": "hoisted"
        },
        "globalStore": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-globalstore",
          "description": "When using the `\"isolated\"` linker, share package installations across projects in a global virtual store at `<cache>/links/` and link `node_modules/.bun/<pkg>@<ver>` into it instead of materializing each package into the project. Default `false`. Can also be set with the `BUN_INSTALL_GLOBAL_STORE` environment variable.\nhttps://bun.com/docs/runtime/bunfig#install-globalstore",
          "type": "boolean",
          "default": false
        },
        "publicHoistPattern": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-publichoistpattern",
          "description": "When using the `\"isolated\"` linker, packages matching these glob patterns are hoisted to the root `node_modules` directory so they can be resolved by any package in the project. Default `[]`. Similar to pnpm's `public-hoist-pattern`.\nhttps://bun.com/docs/runtime/bunfig#install-publichoistpattern",
          "type": "array",
          "items": { "type": "string" },
          "default": [],
          "examples": [["*eslint*", "*prettier*"]]
        },
        "hoistPattern": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-hoistpattern",
          "description": "When using the `\"isolated\"` linker, packages matching these glob patterns are hoisted to the virtual store root (`node_modules/.bun`) so they can be resolved by other packages in the virtual store. Default `[]`. Similar to pnpm's `hoist-pattern`.\nhttps://bun.com/docs/runtime/bunfig#install-hoistpattern",
          "type": "array",
          "items": { "type": "string" },
          "default": [],
          "examples": [["*"]]
        },
        "logLevel": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-loglevel",
          "description": "Set the log level for `bun install`. This can be one of `\"debug\"`, `\"warn\"`, or `\"error\"`.\nhttps://bun.com/docs/runtime/bunfig#install-loglevel",
          "type": "string",
          "enum": ["debug", "warn", "error"],
          "examples": ["warn"]
        },
        "security": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#install-security-scanner",
          "description": "Security configuration for package installation\nhttps://bun.sh/docs/runtime/bunfig#install-security-scanner",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "scanner": {
              "$comment": "https://bun.sh/docs/runtime/bunfig#install-security-scanner",
              "description": "The security scanner to use during certain package manager commands.\nhttps://bun.sh/docs/runtime/bunfig#install-security-scanner",
              "type": "string",
              "examples": ["@acme/bun-security-scanner"]
            }
          }
        },
        "minimumReleaseAge": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-minimumreleaseage",
          "description": "Configure a minimum age (in seconds) for npm package versions. Package versions published more recently than this threshold will be filtered out during installation. Default is null (disabled)\nhttps://bun.com/docs/runtime/bunfig#install-minimumreleaseage",
          "type": "integer",
          "minimum": 0,
          "examples": [259200]
        },
        "minimumReleaseAgeExcludes": {
          "$comment": "https://bun.com/docs/runtime/bunfig#install-minimumreleaseage",
          "description": "Packages that bypass the minimumReleaseAge requirement and can install immediately.\nhttps://bun.com/docs/runtime/bunfig#install-minimumreleaseage",
          "type": "array",
          "items": { "type": "string" },
          "examples": [["@types/bun", "typescript"]]
        }
      }
    },
    "run": {
      "$comment": "https://bun.sh/docs/runtime/bunfig#bun-run",
      "description": "The `bun run` command can be configured under the `[run]` section. These apply to the `bun run` command and the `bun` command when running a file or executable or script.\n\nCurrently, `bunfig.toml` isn't always automatically loaded for `bun run` in a local project (it does check for a global `bunfig.toml`), so you might still need to pass `-c` or `-c=bunfig.toml` to use these settings\nhttps://bun.sh/docs/runtime/bunfig#bun-run",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "shell": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#run-shell-use-the-system-shell-or-bun-s-shell",
          "description": "The shell to use when running package.json scripts via `bun run` or `bun`. On Windows, this defaults to `\"bun\"` and on other platforms it defaults to `\"system\"`\nhttps://bun.sh/docs/runtime/bunfig#run-shell-use-the-system-shell-or-bun-s-shell",
          "type": "string",
          "enum": ["system", "bun"]
        },
        "bun": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#run-bun-auto-alias-node-to-bun",
          "type": "boolean",
          "description": "Auto alias `node` to `bun`\n\nWhen `true`, this prepends `$PATH` with a `node` symlink that points to the `bun` binary for all scripts or executables invoked by `bun run` or `bun`\nThis means that if you have a script that runs `node`, it will actually run `bun` instead, without needing to change your script. This works recursively, so if your script runs another script that runs `node`, it will also run `bun` instead. This applies to shebangs as well, so if you have a script with a shebang that points to `node`, it will actually run `bun` instead.\nBy default, this is enabled if `node` is not already in your `$PATH`\nhttps://bun.sh/docs/runtime/bunfig#run-bun-auto-alias-node-to-bun",
          "default": false,
          "examples": [true]
        },
        "silent": {
          "$comment": "https://bun.sh/docs/runtime/bunfig#run-silent-suppress-reporting-the-command-being-run",
          "type": "boolean",
          "description": "When `true`, suppresses the output of the command being run by `bun run` or `bun`\nhttps://bun.sh/docs/runtime/bunfig#run-silent-suppress-reporting-the-command-being-run",
          "default": false
        },
        "elide-lines": {
          "$comment": "https://bun.com/docs/runtime/bunfig#run-elide-lines-truncate-filtered-output",
          "description": "The number of lines of script output shown per script when using `--filter`. Default `10`. Set to `0` to show all lines. Equivalent to the `--elide-lines` flag.\nhttps://bun.com/docs/runtime/bunfig#run-elide-lines-truncate-filtered-output",
          "type": "integer",
          "minimum": 0,
          "default": 10,
          "examples": [10]
        },
        "noOrphans": {
          "$comment": "https://bun.com/docs/runtime/bunfig#run-noorphans-don-t-leave-orphan-processes-behind",
          "description": "When `true`, Bun watches the process that spawned it and exits as soon as that parent goes away — even if the parent was `SIGKILL`ed and never got a chance to forward a signal. On its own exit, Bun also recursively `SIGKILL`s every descendant process so nothing it spawned outlives it. Useful when Bun is launched by a supervisor (Electron, a CI runner, a thin shim) that may be force-killed.\n\nLinux and macOS only (no-op on Windows and other platforms). Equivalent to the `--no-orphans` CLI flag or the `BUN_FEATURE_FLAG_NO_ORPHANS=1` environment variable.\nhttps://bun.com/docs/runtime/bunfig#run-noorphans-don-t-leave-orphan-processes-behind",
          "type": "boolean",
          "default": false
        }
      }
    }
  }
}
