Create a configuration file for dts-bundle-generator
masterYou can configure dts-bundle-generator using either a JSON file or a JavaScript file with a CommonJS export (module.exports).
To ensure your JavaScript configuration is valid, you can use the @ts-check JSDoc comment at the top of your file. This allows you to leverage TypeScript type checking for your config object. Alternatively, you can write your configuration in TypeScript and compile it to JavaScript before running the generator.
// @ts-check
/** @type {import('dts-bundle-generator/config-schema').BundlerConfig} */
const config = {
// ... config content
};
module.exports = config;