Publish @cloudflare/cli-shared-helpers and @cloudflare/workers-utils to npm#13651
Publish @cloudflare/cli-shared-helpers and @cloudflare/workers-utils to npm#13651emily-shen merged 13 commits intomainfrom
@cloudflare/cli-shared-helpers and @cloudflare/workers-utils to npm#13651Conversation
…to npm - Rename @cloudflare/cli to @cloudflare/cli-shared-helpers - Add tsdown build pipeline and package exports for cli-shared-helpers - Mark both cli-shared-helpers and workers-utils as non-private - Update all consumer imports across wrangler, miniflare, and create-cloudflare - Update deployment validation tests for the rename
🦋 Changeset detectedLatest commit: 16942a2 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@cloudflare/cli-shared-helpers and @cloudflare/workers-utils to npm
Changeset ReviewSummary✅ All changesets look good Detailed Review1. publish-cli-shared-helpers-and-workers-utils.md
2. vite-plugin-cf-registry-support.md
3. silent-bananas-shop.md
4. ninety-doors-sit.md
5. sour-bears-shake.md
6. vitest-pool-workers-reset-helper.md
7. stream-local-video-serving.md
8. dependabot-update-13633.md
9. fix-vite-config-denylist.md
10. dev-registry-windows-polling.md
11. sour-paws-thank.md
12. update-clack-to-v1.md
13. dependabot-update-13645.md
14. detect-waf-block-response.md
15. angry-bears-count.md
16. dependabot-update-13657.md
17. fix-nonretryable-error-message.md
18. ai-search-inherit-display.md
|
|
I'm Bonk, and I've done a quick review of your PR. Renames
- "directory": "packages/worker-utils"
+ "directory": "packages/workers-utils" |
|
I'm Bonk, and I've done a quick review of your PR. Renames
|
The lint-turbo check requires any package with a build script to declare turbo build outputs.
Avoids createRequire(import.meta.url) shims that break when C3's esbuild re-bundles the output as CJS.
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
With unbundle: true, all imports remain as bare specifiers in dist output. Runtime dependencies must be in dependencies (not devDependencies) so npm consumers can resolve them. Also adds scripts/deps.ts for the dependency validation check.
|
do we want to add a 'intended for internal workers-sdk use' or is it fine if external users start depending on it? |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
Both packages are published for internal consumption across the workers-sdk ecosystem. The description warns external users that APIs may change without notice. cli-shared-helpers is reset to 0.0.0 (changesets will bump to 0.1.0).
I've added a disclaimer and made sure they're both 0.x versioned |
The dialog and metrics tests imported collectCLIOutput from the cli package's internal test-util, which used relative imports to streams. With the exports map, the mocked streams module and the source streams are different module instances. Move the helpers into C3's own test helpers file, importing via the package specifier so they use the same mocked module as the production code.
Picks up @clack/core ^1.2.0 and @clack/prompts ^1.2.0 version bumps from main.
petebacondarwin
left a comment
There was a problem hiding this comment.
Codeowners Bypass
Bypassing D1 approval as this is an infrastructure change - not product.
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Publish
@cloudflare/cli-shared-helpers(renamed from@cloudflare/cli) and@cloudflare/workers-utilsto npm via changesets.Changes
@cloudflare/cli→@cloudflare/cli-shared-helpers— the old name was too generic for npm. All 147 consumer files across wrangler, miniflare, and create-cloudflare have been updated.tsdown.config.ts, properexports/filesfields, and"build": "tsdown"script so the package produces importable ESM +.d.mtstype declarations. All runtime deps (includingci-info) are bundled."private": truefrom both@cloudflare/cli-shared-helpersand@cloudflare/workers-utilsso changesets can publish them to npm.validate-package-dependenciesandvalidate-changesetstest expectations for the rename and public status change.