Skip to content

pantoken / plugins/vite/workspace-orchestrator/src / UpstreamNode

接口: UpstreamNode

实验性

一个上游工作区包,需监视并重新构建。

属性

name

name: string

实验性

用于日志消息的显示名称。


dir

dir: string

实验性

包根目录(构建命令的当前工作目录)。


watchPaths

watchPaths: string[]

实验性

要监视的路径(文件或目录)——目录将递归监视。


build

build: readonly [string, string]

实验性

构建命令:第一个元素为可执行文件,其余为参数。


dependents

dependents: readonly string[]

实验性

在此构建成功后需要重建的其他上游节点名称。


include?

optional include?: readonly string[]

实验性

用于包含文件的 glob 模式。设置后,只有匹配至少一个 模式的文件变更会触发重建。省略则包含所有内容。


ignore?

optional ignore?: readonly string[]

实验性

用于忽略文件的 glob 模式。匹配的文件更改将被静默跳过。省略则不忽略任何内容。