Skip to content

feat(codemods): add package export entrypoint - #15784

Open
NuroDev wants to merge 3 commits into
NuroDev/codemod-clean-worktreefrom
NuroDev/codemod-package-exports
Open

NuroDev wants to merge 3 commits into
NuroDev/codemod-clean-worktreefrom
NuroDev/codemod-package-exports

Conversation

@NuroDev

@NuroDev NuroDev commented Sep 22, 2026

Copy link
Copy Markdown
Member

Stacked on #15782.

Add the package export map and build entrypoint needed to expose functions from @cloudflare/codemods. This replays the existing placeholder-export work from commit bbcd58b as its own focused change.

The entrypoint is intentionally still a placeholder in this commit; concrete function exports can be added here as the API surface is reviewed.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: this change only adds package build and export configuration.
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: no public functions are exported yet.

Validation:

  • Package build passes
  • Source type check passes
  • Formatting check passes

Note

This is a contribution from an AI agent: Codex, GPT-5.


Devin Review

@changeset-bot

changeset-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 980c1f4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/codemods Minor

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

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 22, 2026
@NuroDev
NuroDev added this pull request to stack #15785 September 22, 2026 17:42
ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

ask-bonk Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

I'm Bonk, and I've done a quick review of your PR.

Adds an ESM package export and tsup entrypoint for @cloudflare/codemods.

  1. P1 One inline suggestion posted.

github run

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Sep 22, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15784

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15784

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15784

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15784

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@15784

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15784

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15784

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15784

miniflare

npm i https://pkg.pr.new/miniflare@15784

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15784

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15784

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15784

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15784

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15784

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15784

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15784

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15784

wrangler

npm i https://pkg.pr.new/wrangler@15784

commit: 980c1f4

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 new potential issues.

Devin Review

Comment on lines +1 to +2
export { runCodemod } from "./runner";
export type { CodemodContext, CodemodResult } from "./types";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Public API description is stale

The PR description calls this entrypoint a placeholder with no public functions. It now exposes runCodemod, invalidating the documentation and testing rationale.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +1 to +2
export { runCodemod } from "./runner";
export type { CodemodContext, CodemodResult } from "./types";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Published entrypoint lacks consumer coverage

Tests import runCodemod from its source module. None exercises the package export map or generated declarations used by consumers.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@NuroDev
NuroDev force-pushed the NuroDev/codemod-package-exports branch from 980c1f4 to 52eebd6 Compare September 22, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants