diff --git a/.changeset/long-lizards-admire.md b/.changeset/long-lizards-admire.md new file mode 100644 index 0000000000..c9dd656258 --- /dev/null +++ b/.changeset/long-lizards-admire.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/abi-ts": patch +--- + +Let `glob` handle resolving the glob against the current working directory. diff --git a/packages/abi-ts/src/index.ts b/packages/abi-ts/src/index.ts index a064bacb9e..1204b6381f 100644 --- a/packages/abi-ts/src/index.ts +++ b/packages/abi-ts/src/index.ts @@ -24,7 +24,7 @@ const commandModule: CommandModule = { }, 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}`);