Using Quasar + Capacitor inside a pnpm monorepo #18311
|
I'm building a pnpm monorepo where one of the apps is a Quasar project with Capacitor mode. The structure looks like this: /
├── apps/
│ ├── core/
│ └── web/ # Quasar App
│ └── src-capacitor/
├── packages/
└── pnpm-workspace.yamlThe issue is that |
Replies: 2 comments 1 reply
|
Have you tried adding it to |
|
The current recommendation is not to add Recent Adding pnpm -F "@example.com/web"can consequently select or attempt to operate on both projects. pnpm's filtered/recursive execution changes how the child process is attached to the terminal, which explains why Quasar's interactive IP prompt loses normal arrow-key and Enter handling. A path filter works because it identifies only the Quasar application. For an existing project:
This preserves the intended separation between application dependencies and native-mode dependencies and avoids the duplicate-package-name prompt issue. |
The current recommendation is not to add
apps/web/src-capacitorto the rootpnpm-workspace.yaml.Recent
@quasar/app-viteversions (unreleased v3) create apnpm-workspace.yamlinsidesrc-capacitor. This intentionally makes the Capacitor mode directory an isolated pnpm workspace, even when the Quasar application itself is part of a larger monorepo. Quasar then installs and prepares the mode dependencies from that directory.Adding
src-capacitorto the root workspace can produce two workspace packages with the same name: the Quasar application and its Capacitor mode package. A name filter such as:pnpm -F "@example.com/web"can consequently select or attempt to operate on both projects. pnpm…