diff --git a/.changeset/famous-toys-lay.md b/.changeset/famous-toys-lay.md new file mode 100644 index 000000000..3bf8545f2 --- /dev/null +++ b/.changeset/famous-toys-lay.md @@ -0,0 +1,5 @@ +--- +"@changesets/cli": patch +--- + +Make `./bin.js` available through `package.json#exports` to fix compatibility with `changesets/action`. diff --git a/packages/cli/package.json b/packages/cli/package.json index de3f256d9..753409088 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -43,7 +43,8 @@ "import": "./commit/dist/changesets-cli-commit.cjs.mjs", "default": "./commit/dist/changesets-cli-commit.cjs.js" }, - "./package.json": "./package.json" + "./package.json": "./package.json", + "./bin.js": "./bin.js" }, "author": "Changesets Contributors", "contributors": [ @@ -56,7 +57,12 @@ "./index.ts", "./changelog.ts", "./commit/index.ts" - ] + ], + "exports": { + "extra": { + "./bin.js": "./bin.js" + } + } }, "license": "MIT", "dependencies": {