-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: verifies the module system before import config file
It imports the package.json from projectDirectory to check the module system, ECMAScript Modules or CommonJS. If the module system is ESM then just import the eventcatalog.config.js. Otherwise, make a copy of eventcatalog.config.js to the tmpdir/eventcatalog.config.mjs and import it. It removes the convertEsmToCjs used before.
- Loading branch information
1 parent
3b11141
commit 8d71b61
Showing
3 changed files
with
24 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"description": "Only for testing purposes" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters