UNPKG

@plugjs/plug

Version:
18 lines (17 loc) 674 B
/** Options for our `exports` plug. */ export interface ExportsOptions { /** The `package.json` file used as the input for processing */ packageJson?: string; /** The `package.json` file to be written including the matching exports */ outputPackageJson?: string; /** The extension for CommonJS modules (default: `.cjs` or `.js`) */ cjsExtension?: string; /** The extension for EcmaScript modules (default: `.mjs` or `.js`) */ esmExtension?: string; } declare module '../index' { interface Pipe { /** Include the files piped into this task as `exports` in `package.json` */ exports(options?: ExportsOptions): Pipe; } }