Skip to content

Standardize dual module packaging#50

Merged
kys0213 merged 1 commit intomainfrom
feature/core-dual-module-support
Oct 17, 2025
Merged

Standardize dual module packaging#50
kys0213 merged 1 commit intomainfrom
feature/core-dual-module-support

Conversation

@kys0213
Copy link
Copy Markdown
Owner

@kys0213 kys0213 commented Oct 17, 2025

Summary

  • unify CJS/ESM outputs across all packages with extension imports
  • add postbuild scripts that drop and standardize build scripts
  • document dual-module usage and ensure CI runs build -> test flow

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +1 to +5
export * from './bridge/types.js';
export * from './message/types.js';
export * from './message/message.helper.js';
export * from './message/multi-modal-content.helper.js';
export * from './manifest/types.js';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P0 Badge Resolve .js imports with NodeNext module resolution

The source now uses explicit .js extensions in TypeScript imports (e.g. export * from './bridge/types.js';), but the package still compiles with moduleResolution: "node". With this resolver, TypeScript does not map ./*.js specifiers to the corresponding .ts files, so pnpm build will fail with Cannot find module './bridge/types.js' across every package. Either keep extensionless imports or switch the project to a resolver that supports ESM specifiers (node16/nodenext/bundler) before publishing.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +1 to +5
export * from './bridge/types.js';
export * from './message/types.js';
export * from './message/message.helper.js';
export * from './message/multi-modal-content.helper.js';
export * from './manifest/types.js';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P0 Badge Resolve .js imports with NodeNext module resolution

The source now uses explicit .js extensions in TypeScript imports (e.g. export * from './bridge/types.js';), but the package still compiles with moduleResolution: "node". With this resolver, TypeScript does not map ./*.js specifiers to the corresponding .ts files, so pnpm build will fail with Cannot find module './bridge/types.js' across every package. Either keep extensionless imports or switch the project to a resolver that supports ESM specifiers (node16/nodenext/bundler) before publishing.

Useful? React with 👍 / 👎.

@kys0213 kys0213 force-pushed the feature/core-dual-module-support branch 2 times, most recently from 7a6bb85 to 1a280f0 Compare October 17, 2025 02:59
@kys0213
Copy link
Copy Markdown
Owner Author

kys0213 commented Oct 17, 2025

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@kys0213 kys0213 force-pushed the feature/core-dual-module-support branch from 1a280f0 to fdbfd35 Compare October 17, 2025 05:21
@kys0213 kys0213 merged commit 0dc0149 into main Oct 17, 2025
2 checks passed
@kys0213 kys0213 deleted the feature/core-dual-module-support branch October 17, 2025 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant