Skip to content

Commit

Permalink
v1.82.1 - better error when all ESM editions fail
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Nov 4, 2023
1 parent 5311ce8 commit a1ea55d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## v1.82.1 2023 November 4

- Better error message when all ESM editions fail

## v1.82.0 2023 November 4

- Support empty directories (fixed missing engines error)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boundation",
"version": "1.82.0",
"version": "1.82.1",
"description": "Automatic scaffolding and upgrading of your JavaScript ecosystem projects using Bevry's best practices",
"homepage": "https://github.com/bevry/boundation",
"license": "Artistic-2.0",
Expand Down
3 changes: 3 additions & 0 deletions source/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ export async function updateEngines(state) {
// if we only want one edition, verify we only have one edition
if (mode === 'onlyAllSupported' && keptEditions.length !== 1) {
console.error(debug.trim())
if (keptEditions.length === 0) {
throw new Error(`No editions were kept, there should have been one.`)
}
throw new Error(
`Multiple editions were kept [${keptEditions
.map((edition) => edition.directory)
Expand Down

0 comments on commit a1ea55d

Please sign in to comment.