Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / tsbuild
Schema registry

tsbuild

Configuration for the tsbuild TypeScript build system

tsbuild.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your tsbuild.json and it validates in your browser — nothing is uploaded.

Validate a tsbuild.json → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
tsbuildobjectConfiguration options for tsbuild.
tsbuild.entryPointsoneOfFiles that each serve as an input to the bundling algorithm. Can be an array of paths or an object mapping output names to input paths. When omitted, tsbuild auto-infers entry points from the `exports`, `bin`, `main`, or `module` fields in
tsbuild.platformstringTarget platform. Auto-detected from tsconfig lib (DOM = browser, no DOM = node). Override if needed.
one of: "node", "browser", "neutral"
tsbuild.bundlebooleanWhether to bundle source files together. When false, each file is output separately.
default: true
tsbuild.cleanbooleanRemove all files from the output directory before building. Defaults to true.
default: true
tsbuild.packagesstringDefault behavior for node_modules dependencies. 'bundle' includes them in output, 'external' keeps them as imports. When omitted, tsbuild auto-selects based on platform and noExternal.
one of: "bundle", "external"
tsbuild.externalarray<string>Specific dependencies to externalize (don't bundle). In tsconfig.json this must be strings (RegExp patterns are only supported via the programmatic API).
tsbuild.noExternalarray<string>Specific dependencies to bundle (overrides packages setting). In tsconfig.json this must be strings (RegExp patterns are only supported via the programmatic API).
tsbuild.dtsobjectGenerate TypeScript declaration files. --- **Note**: By default, external types from `node_modules` are kept as import statements and not bundled.
tsbuild.dts.entryPointsarray<string>Names of the project's entryPoints to be used to generate the DTS files
tsbuild.dts.resolvebooleanBundle external types from node_modules into declaration files. When false, external imports remain as import statements. Defaults to false for 'node' platform, true for 'browser' and 'neutral' platforms.
tsbuild.envobjectEnvironment variables to define (accessible via import.meta.env)
tsbuild.minifybooleanWhen enabled, the generated code will be minified instead of pretty-printed.
tsbuild.sourceMaponeOfGenerate source maps. Options: true/false, 'inline', 'external', or 'both'. Overrides tsconfig.json compilerOptions.sourceMap.
tsbuild.splittingbooleanEnable code splitting for better caching and parallel loading
tsbuild.bannerobjectInsert content at the beginning of generated files (e.g., shebang for CLI tools)
tsbuild.banner.jsstringBanner text for JavaScript files
tsbuild.banner.cssstringBanner text for CSS files
tsbuild.footerobjectInsert content at the end of generated files (e.g., copyright notices)
tsbuild.footer.jsstringFooter text for JavaScript files
tsbuild.footer.cssstringFooter text for CSS files
tsbuild.pluginsarrayCustom esbuild plugins to include in the build. Each entry is either: - A **string** — npm package name or relative path to a plugin module (default export must be a factory function or Plugin object) - A **tuple** `[string, object]` —
tsbuild.iifeoneOfProduce additional IIFE (Immediately Invoked Function Expression) output alongside the primary ESM build. When enabled, each `.js` entry point is wrapped in an IIFE and written to an `iife/` subdirectory under the output directory. Set to

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
allOfJSON Schema Core, draft 2020-12§10.2.1.1 — "allOf"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
examplesJSON Schema Validation, draft 2020-12§9.5 — "examples"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
minItemsJSON Schema Validation, draft 2020-12§6.4.2 — "minItems"
oneOfJSON Schema Core, draft 2020-12§10.2.1.3 — "oneOf"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas