Replace ncc with tsup for build process#15
Merged
gabrielrufino merged 4 commits intomainfrom Aug 2, 2025
Merged
Conversation
Co-authored-by: gabrielrufino <31759891+gabrielrufino@users.noreply.github.com>
Co-authored-by: gabrielrufino <31759891+gabrielrufino@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] - Troque o uso do ncc pelo tsup
- Garanta que fez o build
Replace ncc with tsup for build process
Aug 2, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the build system from @vercel/ncc to tsup for bundling the TypeScript GitHub Action, providing faster builds and better modern tooling support.
- Replaced
@vercel/nccwithtsupas the bundling tool - Added declarative configuration via
tsup.config.ts - Simplified build script from complex command-line arguments to just
tsup
Reviewed Changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tsup.config.ts | New configuration file defining bundling settings for GitHub Actions compatibility |
| package.json | Updated build script and dependencies to use tsup instead of ncc |
Comments suppressed due to low confidence (1)
package.json:17
- The tsup version ^8.3.5 may not exist. As of my knowledge cutoff in January 2025, the latest stable version of tsup was around 8.0.x. Please verify this version exists or use a known stable version like ^8.0.2.
"tsup": "^8.3.5",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates the build system from
@vercel/ncctotsupfor bundling the TypeScript GitHub Action.Changes Made
@vercel/nccand addedtsupas the build toolncc build src/index.ts -o distto justtsuptsup.config.tswith proper bundling settings for GitHub Actionsdist/index.jsBenefits
Technical Details
The tsup configuration ensures all dependencies (
@actions/core,@actions/github,@faker-js/faker) are bundled into a single file, maintaining GitHub Actions compatibility. The output format remains CommonJS as required by the GitHub Actions runtime.The build process continues to work exactly as before -
npm run buildproduces the samedist/index.jsfile that theaction.ymlreferences.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.