Skip to content

Conversation

@thedannywahl
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings October 14, 2025 22:42
@thedannywahl thedannywahl merged commit c9ab647 into main Oct 14, 2025
3 checks passed
Copy link
Contributor

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 aiinfo package version and replaces the deprecated vite-node loader with a custom ES module loader for handling TypeScript files in CI/CD workflows.

  • Updates aiinfo package version from 1.2.2 to 1.2.4
  • Introduces a custom ES module loader to replace deprecated vite-node loader
  • Adds --no-git-checks flag to all pnpm publish commands in the release workflow

Reviewed Changes

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

File Description
scripts/loader.mjs Adds custom ES module loader for TypeScript file transformation
packages/aiinfo/package.json Bumps package version from 1.2.2 to 1.2.4
.github/workflows/release-package.yml Updates loader configuration and adds git check bypass flags

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

# NOW enable vite-node loader so any .ts/.mts imports work everywhere below
export NODE_OPTIONS="--loader=${{ github.workspace }}/scripts/loader.mjs"
# NOW enable vite-node loader using the new register() API
export NODE_OPTIONS="--import='data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"${{ github.workspace }}/scripts/loader.mjs\", pathToFileURL(\"./\"));'"
Copy link

Copilot AI Oct 14, 2025

Choose a reason for hiding this comment

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

[nitpick] The inline JavaScript code in NODE_OPTIONS is complex and hard to read. Consider creating a separate bootstrap script file that handles the loader registration, which would improve readability and maintainability.

Copilot uses AI. Check for mistakes.
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