Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Enable .cjs config files on ESM projects - FIX: #2881 #2882

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rodgco
Copy link

@rodgco rodgco commented Jul 13, 2021

Enable support for .cjs truffle config files, so it can be used on ESM ({ "type": "module" }) projects.

Ganache

Before opening a pull request, please ensure:

  • You have followed our contributing guidelines
  • [N/A ] Pull request has tests
  • Code is well-commented, linted and follows project conventions
  • Documentation is updated (if necessary)
  • Description explains the issue/use-case resolved and auto-closes related issues

Be kind to code reviewers, please try to keep pull requests as small and focused as possible :)

IMPORTANT: By submitting a patch via a Pull Request, you agree to allow the project
owners to license your work under the terms of the MIT License.

On ESM based projects CommonJS code must end in `.cjs`.
Copy link

@davidaucoin7377 davidaucoin7377 left a comment

Choose a reason for hiding this comment

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

I been trying to figure this out . Im really impressed thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants