export type ImportMap = { path: string; content: string; }; export type DependencyConfig = { /** Name of dependency */ name: string; /** Whether to minify the code. */ minify?: boolean; /** Externals to leave as requires of the build. */ externals?: Record; /** Emit extra entry files to map imports. */ emitFiles?: ImportMap[]; /** Copy extra fields from original package.json to target package.json. */ packageJsonField?: string[]; /* Callback before bundle. */ beforeBundle?: (task: ParsedTask) => void | Promise; }; export type TaskConfig = { packageDir: string; packageName: string; dependencies: Array; }; export type ParsedTask = { depPath: string; depEntry: string; distPath: string; importPath: string; packageDir: string; packagePath: string; packageName: string; minify: NonNullable; depName: NonNullable; externals: NonNullable; emitFiles: NonNullable; beforeBundle?: NonNullable; packageJsonField: NonNullable; };