API 参考
    正在准备搜索索引...

    函数 runFairyHook

    • 执行 hooks 中某一阶段的命令(npm 生命周期 / 自定义名,非 git 写入)。 postinstall 结束后会自动尝试安装 git 钩子(若配置了 precommit / commitmsg 等)。

      参数

      • hookName: string
      • cwd: string = ...

      返回 Promise<void>