Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ionic/core is installed on non-ionic projects #37

Open
chawes13 opened this issue Nov 21, 2023 · 2 comments
Open

@ionic/core is installed on non-ionic projects #37

chawes13 opened this issue Nov 21, 2023 · 2 comments

Comments

@chawes13
Copy link
Contributor

Since @ionic/core is listed as an optional dependency, yarn will still attempt to install it, it just won't complain if the install fails (more details: https://classic.yarnpkg.com/lang/en/docs/dependency-types/#toc-optionaldependencies).

Refer to https://github.com/LaunchPadLab/sea-tow-client/pull/261#discussion_r1400600138 where this was noticed on a client project.

While I believe this package doesn't get included in the final bundle, we really shouldn't be installing dependencies that aren't relevant.

@chawes13
Copy link
Contributor Author

chawes13 commented Nov 21, 2023

@mwislek Any thoughts on how to address this issue? My intuition is that we might need to just separate out the packages. Maybe that would mean converting this to a monorepo with a shared /core?

@mwislek
Copy link
Contributor

mwislek commented Nov 29, 2023

@mwislek Any thoughts on how to address this issue? My intuition is that we might need to just separate out the packages. Maybe that would mean converting this to a monorepo with a shared /core?

@chawes13 Yeah, a monorepo with a shared core makes sense, I believe. I think the differences between the standard client and Ionic client usage are mostly around the templated files that are included for each subsection; the "core" is simply including the correct set of templates for each use and then performing project-specific/subsection name-specific updates. The goal would then be that the client template would include the client template-specific version of the tool (along with its dependencies) and the Ionic client template would include the Ionic client template-specific version of the tool (along with its different set of dependencies that include the Ionic core), is that what you're thinking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants