### What problem does this feature solve 包结构当前解决方案如下: <img width="1792" height="286" alt="Image" src="https://github.com/user-attachments/assets/f309b92e-b02d-4c3b-9614-664286cefb31" /> https://github.com/opentiny/unplugin-tiny-vue#%E6%B8%A9%E9%A6%A8%E6%8F%90%E7%A4%BA 只有1个版本的`@opentiny/vue`是没问题的,但是monorepo如果同时存在vue2和vue3,包提升就乱了,此时需要把opentiny安装到web项目根目录中,使用alias来锁定其他包使用的opentiny版本。 当前是没有这种解决方案的 ### What does the proposed API look like 其实可以这样, `postinstall`时,把所有`@opentiny/vue-*`(子包,子包的子包),拷贝软链接到`@opentiny/vue`相同目录 ``` "scripts": { "postinstall": "node scripts/postinstall.mjs", }, ``` <img width="682" height="1718" alt="Image" src="https://github.com/user-attachments/assets/2e81cbaf-babb-44ce-8e46-adab1ba65f5d" /> ### What is your project name animal-world
What problem does this feature solve
包结构当前解决方案如下:
https://github.com/opentiny/unplugin-tiny-vue#%E6%B8%A9%E9%A6%A8%E6%8F%90%E7%A4%BA
只有1个版本的
@opentiny/vue是没问题的,但是monorepo如果同时存在vue2和vue3,包提升就乱了,此时需要把opentiny安装到web项目根目录中,使用alias来锁定其他包使用的opentiny版本。当前是没有这种解决方案的
What does the proposed API look like
其实可以这样,
postinstall时,把所有@opentiny/vue-*(子包,子包的子包),拷贝软链接到@opentiny/vue相同目录What is your project name
animal-world