Skip to content

docs(readme): install as regular dependency (not dev)#3

Merged
anilcancakir merged 1 commit into
masterfrom
docs/regular-dependencies
Jun 18, 2026
Merged

docs(readme): install as regular dependency (not dev)#3
anilcancakir merged 1 commit into
masterfrom
docs/regular-dependencies

Conversation

@anilcancakir

Copy link
Copy Markdown
Contributor

The Install section recommended dev_dependencies, but magic_devtools/dusk/telescope are imported in lib/main.dart (under kDebugMode), which trips the depend_on_referenced_packages lint (4 infos on a fresh consumer). They are regular dependencieskDebugMode tree-shakes them from release builds — matching how dusk/telescope document their own install. Surfaced by a fresh-app E2E test.

magic_devtools/dusk/telescope are imported in lib/main.dart (under
kDebugMode), so they are regular dependencies, not dev_dependencies: a
dev_dependencies entry trips the depend_on_referenced_packages lint, and
kDebugMode already tree-shakes them from release builds. Aligns with how
fluttersdk_dusk and fluttersdk_telescope document their own installation.
Copilot AI review requested due to automatic review settings June 18, 2026 11:10
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates installation guidance to recommend adding magic_devtools (and related tooling packages) under regular dependencies rather than dev_dependencies, aligning with how the packages are imported/used from consumer app lib/ code and avoiding depend_on_referenced_packages lint hits.

Changes:

  • Rewrites the README Install section rationale to explain why these packages must be regular dependencies.
  • Updates the sample pubspec.yaml snippet from dev_dependencies: to dependencies:.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
## Install

It is a dev tool, not a runtime dependency, so it belongs under `dev_dependencies`:
`magic_devtools` and the tooling packages are imported in `lib/main.dart` (under `kDebugMode`), so they are regular `dependencies`, not `dev_dependencies` — `kDebugMode` tree-shakes them out of release builds, and because `lib/` imports them a `dev_dependencies` entry would trip the `depend_on_referenced_packages` lint. This matches how `fluttersdk_dusk` and `fluttersdk_telescope` are installed on their own.
@anilcancakir anilcancakir merged commit 0ab0fb1 into master Jun 18, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants