Skip to content

Commit

Permalink
fix(cli): ESM build
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Oct 30, 2024
1 parent d65f3c0 commit e7d48d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-fireants-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/cli': patch
---

Fix ESM build
3 changes: 3 additions & 0 deletions scripts/replace-import-meta-url-in-cjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const esm = 'import.meta.url';
});

for (const scriptPath of scriptPaths) {
if (scriptPath.includes('ts-artifacts')) {
continue;
}
const script = path.join(__packages, scriptPath);
const content = await fs.readFile(script, 'utf8');
if (!content.includes(esm)) {
Expand Down

0 comments on commit e7d48d4

Please sign in to comment.