Skip to content

Commit

Permalink
fix(abi-ts): remove cwd join (#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Sep 7, 2023
1 parent c4d5eb4 commit 2459e15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-lizards-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/abi-ts": patch
---

Let `glob` handle resolving the glob against the current working directory.
2 changes: 1 addition & 1 deletion packages/abi-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const commandModule: CommandModule<Options, Options> = {
},

handler({ input }) {
const files = glob.sync(path.join(process.cwd(), input));
const files = glob.sync(input);

if (!files.length) {
console.error(`No files found for glob: ${input}`);
Expand Down

0 comments on commit 2459e15

Please sign in to comment.