Skip to content

Develop#18

Merged
gabrielrufino merged 5 commits intomainfrom
develop
Aug 16, 2025
Merged

Develop#18
gabrielrufino merged 5 commits intomainfrom
develop

Conversation

@gabrielrufino
Copy link
Collaborator

No description provided.

- Updated build scripts in package.json to use tsup instead of ncc.
- Replaced @vercel/ncc with tsup in devDependencies.
- Adjusted build:watch script for tsup compatibility.
- Refined expect function type annotation for better validator key inference.
- Added outDir option to tsconfig.json for output directory specification.
@gabrielrufino gabrielrufino requested a review from Copilot August 16, 2025 22:41
@gabrielrufino gabrielrufino self-assigned this Aug 16, 2025
Copy link

Copilot AI left a comment

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 updates the build system from Vercel's ncc to tsup, improves type safety in the expect function, and updates project dependencies to their latest versions.

  • Replaced ncc build tool with tsup for better TypeScript compilation
  • Enhanced type safety by constraining the type parameter to valid validator keys
  • Updated development dependencies to latest versions

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.

File Description
tsup.config.ts New configuration file for tsup build tool setup
src/expect.ts Improved type safety by constraining type parameter to validator keys
package.json Updated build scripts, version bump, and dependency updates

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

export default defineConfig({
entry: ['src/index.ts'],
outDir: 'dist',
format: ['cjs'],
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding 'esm' format alongside 'cjs' to support both CommonJS and ES modules, providing better compatibility for different consumers of the package.

Suggested change
format: ['cjs'],
format: ['cjs', 'esm'],

Copilot uses AI. Check for mistakes.
minify: true,
splitting: false,
bundle: true,
noExternal: ['@actions/core', '@actions/github'],
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

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

[nitpick] The noExternal configuration bundles these dependencies, which may increase bundle size. Consider if these should remain external dependencies instead of being bundled.

Suggested change
noExternal: ['@actions/core', '@actions/github'],
// noExternal: ['@actions/core', '@actions/github'], // Removed to keep these dependencies external

Copilot uses AI. Check for mistakes.
@gabrielrufino gabrielrufino merged commit 821afd0 into main Aug 16, 2025
10 checks passed
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.

2 participants