在Lerna Monorepo中检测循环依赖

问题描述

使用const MyFunctionalComponent = () => { const ref = useRef(); const [offset,setoffset] = useState(0); useEffect(() => { // access ref.current },[offset]); return <MyClassComponent ref={ref}/> } 发布软件包时,如果检测到循环依赖项,则会输出警告。

有什么方法可以让lerna在没有发布包的情况下检查循环依赖吗?

解决方法

lerna bootstrap 也会输出循环依赖。