UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

32 lines (31 loc) 1.01 kB
import type { DevToolData as BaseDevToolData } from '@modern-js/core'; import type { registerHook } from '../hooks'; import type { BuildCommandOptions, DevCommandOptions } from './command'; import type { BaseBuildConfig, BuildConfig, BuildType } from './config'; export interface BuildTaskResult { status: 'success' | 'fail'; message?: string; config: BaseBuildConfig; } export interface BuildResult { status: 'success' | 'fail'; message?: string; config: BuildConfig; commandOptions: BuildCommandOptions; totalDuration: number; } export interface BuildPlatformResult { status: 'success' | 'fail'; message: string | Error | null; } export type DevToolData = BaseDevToolData<DevCommandOptions>; export type PromptResult = { choiceDevTool: string; } & Record<string, any>; export type ModuleToolsHooks = typeof registerHook; export interface WatchJsHookContext { buildConfig: BaseBuildConfig; } export interface WatchDtsHookContext { buildType: BuildType; }