Documentation
    Preparing search index...

    Interface AutoExportStaticOptions

    interface AutoExportStaticOptions {
        exportPackageJson?: boolean;
        staticExports?: string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    exportPackageJson?: boolean

    Whether or not automatically export the package.json file too.

    Note: If you want to refer to the actual distributed package.json in your scripts, you should import it through an export and not use a direct json import, your bundler will bundle your compile time package.json in, and your users will end up using that information, not what was published.

    true
    
    staticExports?: string[]

    Relative to cwd, a folder whats content will be simply copied to outDir and made available using simple, additional export statements. Make sure their names don't overlap with other exports!

    ["readme.md", "static/\*\*", "export/**"]