Hi folks!
We are using vue-demi in a monorepo where we have a components package that uses vue-demi and has vue 3 as a devDependency. Alongside that, in the same monorepo, have vue 2 and vue 3 apps that consume the components package. We declare a dependency on the components package in the various vue apps using the workspace: protocol.
We use pnpm as our package manager. Upon running pnpm install in the root of monorepo, vue 3 devDependency of the components package is installed and the post install script of vue-demi sets up its exports for vue 3 since it finds the local vue 3 dependency when running require('vue'). In the apps, a link is created to the components package which results in vue-demi being hard configured for vue 3 and fails to work when a component coming from the components package is used in a vue 2 app.
How should one use vue-demi in a monorepo to have it work across vue 2 and vue 3 apps in the same monorepo?
Thanks for the work put into this package btw! It's a blessing!
Hi folks!
We are using
vue-demiin a monorepo where we have a components package that usesvue-demiand has vue 3 as adevDependency. Alongside that, in the same monorepo, have vue 2 and vue 3 apps that consume the components package. We declare a dependency on the components package in the various vue apps using theworkspace:protocol.We use
pnpmas our package manager. Upon runningpnpm installin the root of monorepo, vue 3devDependencyof the components package is installed and the post install script ofvue-demisets up its exports for vue 3 since it finds the local vue 3 dependency when runningrequire('vue'). In the apps, a link is created to the components package which results invue-demibeing hard configured for vue 3 and fails to work when a component coming from the components package is used in a vue 2 app.How should one use
vue-demiin a monorepo to have it work across vue 2 and vue 3 apps in the same monorepo?Thanks for the work put into this package btw! It's a blessing!