Skip to content

Conversation

@jackw
Copy link
Contributor

@jackw jackw commented Sep 26, 2025

What is this feature?

This PR adds the customCondition @grafana-app/source to the repo to allow the frontend tooling to resolve the source files of the packages during development and build without impacting consumers of the packages once published to NPM.

Why do we need this feature?

We've been using yarns publishConfig and custom scripts to achieve the same thing. Now there's a legit way to do it via nodejs and tooling I think we should research using that as an alternative to maintaining custom scripts.

Who is this feature for?

Grafana maintainers

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@jackw jackw added this to the 12.3.x milestone Sep 26, 2025
@jackw jackw self-assigned this Sep 26, 2025
@jackw jackw requested a review from a team as a code owner September 26, 2025 16:24
@jackw jackw requested review from a team as code owners September 26, 2025 16:24
@jackw jackw requested review from a team as code owners September 26, 2025 16:24
@jackw jackw added the type/debt technical debt label Sep 26, 2025
@jackw jackw requested a review from a team as a code owner September 26, 2025 16:24
@jackw jackw added the no-changelog Skip including change in changelog/release notes label Sep 26, 2025
@jackw jackw requested review from academo, eledobleefe, joshhunt and tomratcliffe and removed request for a team September 26, 2025 16:24
@jackw jackw requested review from charandas, gillesdemey, konrad147, laurenashleigh, radiohead and soniaAguilarPeiron and removed request for a team September 26, 2025 16:24
jackw added 29 commits October 21, 2025 08:52
@jackw jackw force-pushed the jackw/npm-package-customconditions branch from 1a97536 to 98e5017 Compare October 21, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/explore area/frontend area/panel/geomap levitate breaking change A label indicating a breaking change and assigned by Levitate. no-changelog Skip including change in changelog/release notes type/build-packaging type/debt technical debt

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants