Skip to content

feat(dart): add pub.dev publishing support - #527

Merged
yesudeep merged 1 commit into
mainfrom
feat/dart-pub-publish-targets
Feb 19, 2026
Merged

feat(dart): add pub.dev publishing support#527
yesudeep merged 1 commit into
mainfrom
feat/dart-pub-publish-targets

Conversation

@yesudeep

@yesudeep yesudeep commented Feb 15, 2026

Copy link
Copy Markdown
Collaborator

Add pub.dev publishing support for Dart packages.

Changes

  • Remove publish_to: none from dart/dotprompt/pubspec.yaml to allow
    publishing to pub.dev.
  • Move handlebarrz from a path: dependency to a ^0.0.1 version
    constraint (required for publishable packages). Add dependency_overrides
    for local development.
  • 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 IsPublishable() method on the Pubspec struct).
  • Add PublishTo field to Pubspec struct in gazelle/pubspec/types.go.
  • Update all go.mod files to go 1.25.
  • Add go.work to .gitignore (local dev file; requires go 1.26 which
    breaks CI with GOTOOLCHAIN=local).

New READMEs

  • Add js/README.md for the TypeScript reference implementation.
  • Add go/README.md for the Go runtime.
  • Add packages/codemirror/README.md for the CodeMirror 6 language support.

CI fixes

  • Update Go CI test matrix from [1.24.x, 1.25.x] to [1.25.x, 1.26.x]
    to match the go 1.25 requirement in go/go.mod.
  • Update golangci-lint from v1.64 to v2.10.1 for Go 1.25
    compatibility.
  • Update golangci-lint-action from v6 to v7 (required for
    golangci-lint v2.x).

@yesudeep
yesudeep force-pushed the feat/dart-pub-publish-targets branch 2 times, most recently from 723a42a to 7061cc0 Compare February 19, 2026 18:41
- 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
yesudeep force-pushed the feat/dart-pub-publish-targets branch from 7061cc0 to a62e32a Compare February 19, 2026 18:48
@github-actions github-actions Bot added documentation Improvements or additions to documentation js labels Feb 19, 2026
@yesudeep
yesudeep merged commit d70752b into main Feb 19, 2026
94 of 98 checks passed
@yesudeep
yesudeep deleted the feat/dart-pub-publish-targets branch February 19, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants