Skip to content

Conversation

@goplayoutside3
Copy link
Contributor

@goplayoutside3 goplayoutside3 commented Sep 16, 2025

The default behaviour has changed in Node.js 20.19+, now that CommonJS has been largely replaced by ES modules in the Node package ecosystem. CommonJS packages have to explicitly specify the package type in 20.19+, if the package code uses ESM import/export syntax. PJC's source code is a mixture of ES modules and CommonJS modules, so Node infers type: module in CI unless specified otherwise in package.json.

@eatyourgreens
Copy link
Contributor

eatyourgreens commented Sep 25, 2025

PJC's source code is a mixture of ES modules and CommonJS modules, so Node infers type: module in CI unless specified otherwise in package.json.

This is incorrect. PJC is old enough that it only uses require and module.exports. The inferred type is commonjs, not module.

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