diff --git a/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch b/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch new file mode 100644 index 000000000..0391156bd --- /dev/null +++ b/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch @@ -0,0 +1,14 @@ +diff --git a/lib/advanced/Cli.mjs b/lib/advanced/Cli.mjs +index a1ca69103b95aa6f69fef3027552ffbdc383ed37..94bdfa06926a1d73aa25ef0c23c1590a45bb7150 100644 +--- a/lib/advanced/Cli.mjs ++++ b/lib/advanced/Cli.mjs +@@ -412,6 +412,9 @@ class Cli { + if (error.stack) { + result += `${error.stack.replace(/^.*\n/, ``)}\n`; + } ++ if (Object.hasOwn(error, 'cause')) { ++ result += `\nCause: ${error.cause?.stack ?? JSON.stringify(error.cause)}` ++ } + } + return result; + } diff --git a/package.json b/package.json index 80d3db94c..d4969ed65 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@zkochan/cmd-shim": "^6.0.0", "babel-plugin-dynamic-import-node": "^2.3.3", "better-sqlite3": "^9.4.1", - "clipanion": "^3.0.1", + "clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch", "debug": "^4.1.1", "esbuild": "0.19.5", "eslint": "^8.0.0", diff --git a/yarn.lock b/yarn.lock index aaf6b476e..fc06bb6f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2122,7 +2122,7 @@ __metadata: languageName: node linkType: hard -"clipanion@npm:^3.0.1": +"clipanion@npm:3.2.1": version: 3.2.1 resolution: "clipanion@npm:3.2.1" dependencies: @@ -2133,6 +2133,17 @@ __metadata: languageName: node linkType: hard +"clipanion@patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch": + version: 3.2.1 + resolution: "clipanion@patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch::version=3.2.1&hash=2c4ae0" + dependencies: + typanion: "npm:^3.8.0" + peerDependencies: + typanion: "*" + checksum: 10c0/9094ee0fee530cc457540c277b52104a20dfb97677da4db6d0dcaa0fa21a2009c063614532bcfabf8378b629889bd74c65842ad73410c57b5a0e0204ea5daf2a + languageName: node + linkType: hard + "cliui@npm:^8.0.1": version: 8.0.1 resolution: "cliui@npm:8.0.1" @@ -2233,7 +2244,7 @@ __metadata: "@zkochan/cmd-shim": "npm:^6.0.0" babel-plugin-dynamic-import-node: "npm:^2.3.3" better-sqlite3: "npm:^9.4.1" - clipanion: "npm:^3.0.1" + clipanion: "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch" debug: "npm:^4.1.1" esbuild: "npm:0.19.5" eslint: "npm:^8.0.0"