Skip to content

Conversation

@fedtti
Copy link

@fedtti fedtti commented Oct 9, 2025

This simple change converts the existing npm script code from CJS to ESM for a more future-proof development. It also fix package description typo with a trailing comma in package.json.

@ElanHasson ElanHasson requested a review from Copilot October 9, 2025 19:25
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

Converts npm script code from CommonJS (CJS) to ECMAScript Modules (ESM) for better future compatibility and fixes a trailing comma typo in the package.json description field.

  • Migrates from require() to import statements and updates module exports
  • Updates package.json to specify "type": "module" and fixes description typo
  • Refactors file path handling and package.json loading for ESM compatibility

Reviewed Changes

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

File Description
scripts/npm/package.json Adds ESM module type declaration and fixes description typo
scripts/npm/index.js Converts from CJS to ESM syntax with import statements and async package loading

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

@ssaengs ssaengs requested a review from ElanHasson October 9, 2025 19:27
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