From 2459e15fc9bf49fff2d769b9efba07b99635f2cc Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 7 Sep 2023 10:46:09 -0700 Subject: [PATCH] fix(abi-ts): remove cwd join (#1418) --- .changeset/long-lizards-admire.md | 5 +++++ packages/abi-ts/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/long-lizards-admire.md 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}`);