From 31556edcbfad5290e67d565f2c1aa69d8de003ad Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 19 Jul 2024 10:21:53 -0400 Subject: [PATCH] Make it possible to run script --- .changeset/unlucky-geese-hug.md | 5 +++++ .../bin/{foundry-sdk-generator => foundry-sdk-generator.cjs} | 2 -- packages/foundry-sdk-generator/package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/unlucky-geese-hug.md rename packages/foundry-sdk-generator/bin/{foundry-sdk-generator => foundry-sdk-generator.cjs} (99%) diff --git a/.changeset/unlucky-geese-hug.md b/.changeset/unlucky-geese-hug.md new file mode 100644 index 000000000..210071c6e --- /dev/null +++ b/.changeset/unlucky-geese-hug.md @@ -0,0 +1,5 @@ +--- +"@osdk/foundry-sdk-generator": patch +--- + +Fixes bin script being interpreted as esm diff --git a/packages/foundry-sdk-generator/bin/foundry-sdk-generator b/packages/foundry-sdk-generator/bin/foundry-sdk-generator.cjs similarity index 99% rename from packages/foundry-sdk-generator/bin/foundry-sdk-generator rename to packages/foundry-sdk-generator/bin/foundry-sdk-generator.cjs index 3920f082f..870a77c29 100755 --- a/packages/foundry-sdk-generator/bin/foundry-sdk-generator +++ b/packages/foundry-sdk-generator/bin/foundry-sdk-generator.cjs @@ -15,7 +15,5 @@ * limitations under the License. */ - const cli = require("../build/js/index.cjs"); cli.cli(); - diff --git a/packages/foundry-sdk-generator/package.json b/packages/foundry-sdk-generator/package.json index 427dfffcd..0e4e46b2a 100644 --- a/packages/foundry-sdk-generator/package.json +++ b/packages/foundry-sdk-generator/package.json @@ -61,7 +61,7 @@ }, "keywords": [], "bin": { - "foundry-sdk-generator": "./bin/foundry-sdk-generator" + "foundry-sdk-generator": "./bin/foundry-sdk-generator.cjs" }, "files": [ "build/cjs",