Skip to content

Additional build packaging improvements#32

Merged
ndeloof merged 1 commit into
mainfrom
update-build-packaging-2
Oct 8, 2025
Merged

Additional build packaging improvements#32
ndeloof merged 1 commit into
mainfrom
update-build-packaging-2

Conversation

@wmluke

@wmluke wmluke commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

- What I did
Additional build packaging improvements

- How I did it

  • Explicitly output module type extensions in dist (.mts, .mjs, .cts, or .cjs)
  • Updated main in package.json to point to CJS for legacy node versions
  • Added module to package.json to point to ESM for modern node version.

- How to verify it
Run tests in test-integration/cjs-project and test-integration/esm-project

- Human readable description for the release notes

… or .cjs)

- Updated `main` in package.json to point to CJS for legacy node versions
- Added `module` to package.json to point to ESM for modern node version.
@wmluke wmluke requested review from Copilot and ndeloof October 8, 2025 17:41
@wmluke wmluke self-assigned this Oct 8, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds additional build packaging improvements to enhance module compatibility and build processes. The changes focus on enabling explicit module type extensions and improving the release workflow configuration.

  • Added explicit module type extensions (.mts, .mjs, .cts, .cjs) to build output
  • Updated package.json exports to properly handle both CommonJS and ESM modules
  • Enhanced GitHub Actions release workflow with Git configuration

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tsdown.config.ts Enables fixed extensions and node protocol for build output
package.json Updates main/module fields and exports to use explicit file extensions
.github/workflows/release.yml Adds Git configuration step for release workflow

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread package.json
@ndeloof ndeloof merged commit d8e9a82 into main Oct 8, 2025
6 checks passed
@ndeloof ndeloof deleted the update-build-packaging-2 branch October 8, 2025 18:33
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.

3 participants