Skip to content

Commit

Permalink
Make ./bin.js available through package.json#exports (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Nov 28, 2023
1 parent 3c03496 commit 86cfff1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .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`.
10 changes: 8 additions & 2 deletions packages/cli/package.json
Expand Up @@ -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": [
Expand All @@ -56,7 +57,12 @@
"./index.ts",
"./changelog.ts",
"./commit/index.ts"
]
],
"exports": {
"extra": {
"./bin.js": "./bin.js"
}
}
},
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit 86cfff1

Please sign in to comment.