Skip to content

Commit

Permalink
fix(cli): specify extension on js module
Browse files Browse the repository at this point in the history
  • Loading branch information
Griko Nibras committed Sep 2, 2022
1 parent 565ae50 commit 92c6711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graz/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function generate() {

await Promise.all([
fs.writeFile(chainsDir("index.js"), jsContent, { encoding: "utf-8" }),
fs.writeFile(chainsDir("index.mjs"), mjsContent, { encoding: "utf-8" }),
fs.writeFile(chainsDir("index.mjs"), mjsContent.replace('"../dist"', '"../dist/index.mjs"'), { encoding: "utf-8" }),
fs.writeFile(chainsDir("index.ts"), mjsContent, { encoding: "utf-8" }),
]);

Expand Down

0 comments on commit 92c6711

Please sign in to comment.