Optional
bundleWhen true attempt to bundle types of top level exported packages. This is useful for re-bundling libraries.
Optional
checkWhen true and bundling top level package exports via
bundlePackageExports
check for index.d.ts
in package root; this is off by default as usually this is indicative
of and older package not updated for exports
in package.json
.
Optional
compilerTypescript compiler options. https://www.typescriptlang.org/tsconfig
Optional
conditionresolve.exports
conditional options for
package.json
exports field type.
Optional
conditionresolve.exports
conditional options for
package.json
imports field type.
Optional
dtsOptions for naive text replacement operating on the final bundled TS declaration file. The keys are converted into RegExp instances so may be a valid pattern to match.
Optional
filterBy default,
jsdocRemoveNodeByTags('internal')
transformer is automatically added removing all AST nodes that have the
@internal
tag. To generate declarations with internal tags set to false
/ null / undefined.
Optional
importsWhen defined enables importsExternal
from the @typhonjs-build-test/rollup-plugin-pkg-imports
package.
Optional
importsWhen defined enables importsResolve
from the @typhonjs-build-test/rollup-plugin-pkg-imports
package.
Optional
input?: stringThe input entry ESM source path.
Optional
logDefines the logging level.
Optional
output?: stringThe output file path for the bundled TS declarations.
Optional
outputThe bundled output TS declaration file extension. Normally a
complete output
path is provided when using generateDTS
, but this can be useful when using the Rollup plugin to
change the extension as desired.
Optional
outputOutputs the package dependency graph to the given file path. The graph JSON is suitable for use in various graph libraries like cytoscape / Svelte Flow / amongst others.
Optional
outputWhen outputting the dependency graph use this indentation value for the JSON output.
Optional
outputWhen postprocessing is configured this is a helpful debugging mechanism to output the postprocessed declarations to a separate file making it easier to compare the results of any additional processing. You must specify a valid filepath.
Optional
postprocess?: Iterable<ProcessorFunction>An iterable list of postprocessing functions. Note: This is experimental!
Optional
prependDirectly prepend these files to the bundled output. The files are first attempted to be resolved relative to the entry point folder allowing a common configuration to be applied across multiple subpath exports. Then a second attempt is made with the path provided.
Optional
prependDirectly prepend these strings to the bundled output.
Optional
removeWhen true a custom transformer is added to remove the renaming of private static class members that Typescript currently renames.
Optional
rollupRollup external
option.
https://rollupjs.org/configuration-options/#external
Optional
rollupRollup onwarn
option. https://rollupjs.org/configuration-options/#onwarn
Rollup onwarn
option. https://rollupjs.org/configuration-options/#onwarn
Optional
rollupRollup paths
option.
https://rollupjs.org/configuration-options/#output-paths
Optional
tsWhen true set checkJs
to default compiler options. This is a
convenience parameter to quickly turn checkJs
on / off.
Optional
tsBy default, all diagnostic errors that are external to the common
root path from the input
source file will be filtered from diagnostic logging. Set to true
to include all
diagnostic errors in logging. If you set an explicit diagnostic filter function via the tsDiagnosticFilter
this
option is ignored.
Optional
tsOptional
filter function to handle diagnostic messages in a similar manner as the onwarn
Rollup callback. Return true
to
filter the given diagnostic from posting to console.error
otherwise return false to include.
Optional
filter function to handle diagnostic messages in a similar manner as the onwarn
Rollup callback. Return true
to
filter the given diagnostic from posting to console.error
otherwise return false to include.
Optional
message: stringOptional
tsWhen generating a DTS bundle you may opt to turn off any emitted TS compiler diagnostic messages.
Optional
tsWhen true all TS files located at the input
path and all subdirectories
are included as synthetic exports in the generated declarations. Setting to false only includes TS files in the
direct input
path.
Optional
tsA list of TransformerFactory or CustomTransformerFactory functions to process generated declaration AST while emitting intermediate types for bundling. https://github.com/itsdouges/typescript-transformer-handbook
Optional
tsconfig?: stringProvide a path to a tsconfig.json
for compilerOptions
configuration.
Data used to generate the bundled TS declaration.