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",