From 86cfff1f1891e75238eec61dc97a303ad7a8c030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Tue, 28 Nov 2023 12:14:24 +0100 Subject: [PATCH] Make `./bin.js` available through `package.json#exports` (#1267) --- .changeset/famous-toys-lay.md | 5 +++++ packages/cli/package.json | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .changeset/famous-toys-lay.md 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": {