feat(dart): add pub.dev publishing support - #527
Merged
Conversation
MengqinShen
approved these changes
Feb 15, 2026
yesudeep
force-pushed
the
feat/dart-pub-publish-targets
branch
2 times, most recently
from
February 19, 2026 18:41
723a42a to
7061cc0
Compare
- Remove `publish_to: none` from dart/dotprompt/pubspec.yaml to allow
publishing to pub.dev.
- Add `dart_pub_publish` and `dart_pub_get` targets to both
dart/dotprompt/BUILD.bazel and dart/handlebarrz/BUILD.bazel.
- Enhance Gazelle extension to auto-generate `dart_pub_get` and
`dart_pub_publish` targets when a pubspec.yaml is found.
- `dart_pub_get` is always generated (dependency resolution).
- `dart_pub_publish` is only generated when `publish_to` is not
set to `none` (checked via new [IsPublishable()](cci:1://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:27:0-31:1) method on
the [Pubspec](cci:2://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:19:0-25:1) struct).
- Add `PublishTo` field to [Pubspec](cci:2://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:19:0-25:1) struct in gazelle/pubspec/types.go.
- Add go.work with all 4 Go modules for local development.
- Update all go.mod files to go 1.25 and go.work to go 1.26
(support the two most recent Go releases).
yesudeep
force-pushed
the
feat/dart-pub-publish-targets
branch
from
February 19, 2026 18:48
7061cc0 to
a62e32a
Compare
This was referenced Feb 19, 2026
This was referenced Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add pub.dev publishing support for Dart packages.
Changes
publish_to: nonefromdart/dotprompt/pubspec.yamlto allowpublishing to pub.dev.
handlebarrzfrom apath:dependency to a^0.0.1versionconstraint (required for publishable packages). Add
dependency_overridesfor local development.
dart_pub_publishanddart_pub_gettargets to bothdart/dotprompt/BUILD.bazelanddart/handlebarrz/BUILD.bazel.dart_pub_getanddart_pub_publishtargets when apubspec.yamlis found.dart_pub_getis always generated (dependency resolution).dart_pub_publishis only generated whenpublish_tois not set tonone(checked viaIsPublishable()method on thePubspecstruct).PublishTofield toPubspecstruct ingazelle/pubspec/types.go.go.modfiles togo 1.25.go.workto.gitignore(local dev file; requiresgo 1.26whichbreaks CI with
GOTOOLCHAIN=local).New READMEs
js/README.mdfor the TypeScript reference implementation.go/README.mdfor the Go runtime.packages/codemirror/README.mdfor the CodeMirror 6 language support.CI fixes
[1.24.x, 1.25.x]to[1.25.x, 1.26.x]to match the
go 1.25requirement ingo/go.mod.golangci-lintfromv1.64tov2.10.1for Go 1.25compatibility.
golangci-lint-actionfromv6tov7(required forgolangci-lint v2.x).