Skip to content

heft-storybook-plugin: add disableTelemetry option; always set COREPACK_ENABLE_AUTO_PIN=0#5698

Merged
dmichon-msft merged 2 commits into
mainfrom
copilot/update-heft-storybook-plugin
Mar 13, 2026
Merged

heft-storybook-plugin: add disableTelemetry option; always set COREPACK_ENABLE_AUTO_PIN=0#5698
dmichon-msft merged 2 commits into
mainfrom
copilot/update-heft-storybook-plugin

Conversation

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Adds two environment variable behaviors to the Storybook subprocess invocation:

  • COREPACK_ENABLE_AUTO_PIN=0 — always set, prevents corepack from prompting to pin a package manager version during Storybook runs.
  • STORYBOOK_DISABLE_TELEMETRY=1 — set when the new disableTelemetry: true plugin option is enabled, suppressing Storybook telemetry collection.

Both env vars are applied across both invocation paths: the forked subprocess (_invokeAsSubprocessAsync) and the synchronous inline path used in serve/watch mode (_invokeSync).

Usage

// heft.json plugin options
{
  "storykitPackageName": "my-storykit",
  "disableTelemetry": true
}

Files changed

  • src/StorybookPlugin.ts — added disableTelemetry?: boolean to IStorybookPluginOptions; env object now built in _runStorybookAsync and threaded through to both invoke methods.
  • src/schemas/storybook.schema.json — added disableTelemetry boolean property.

Copilot AI and others added 2 commits March 12, 2026 02:22
…COREPACK_ENABLE_AUTO_PIN=0

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
@dmichon-msft dmichon-msft merged commit 59e2010 into main Mar 13, 2026
9 checks passed
@dmichon-msft dmichon-msft deleted the copilot/update-heft-storybook-plugin branch March 13, 2026 19:16
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Mar 13, 2026
dmichon-msft added a commit to dmichon-msft/rushstack that referenced this pull request Mar 19, 2026
…EPACK_ENABLE_AUTO_PIN=0` (microsoft#5698)

* Initial plan

* feat(heft-storybook-plugin): add disableTelemetry option; always set COREPACK_ENABLE_AUTO_PIN=0

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants