Skip to content

Commit 4984dec

Browse files
committed
chore: update ora
1 parent 57dcacc commit 4984dec

3 files changed

Lines changed: 56 additions & 58 deletions

File tree

‎package-lock.json‎

Lines changed: 49 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"lodash.at": "^4.6.0",
5959
"log4js": "^6.9.1",
6060
"open": "^11.0.0",
61-
"ora": "^8.2.0",
61+
"ora": "^9.4.1",
6262
"os-locale": "^8.0.0",
6363
"picomatch": "^4.0.5",
6464
"qs": "^6.15.3",

‎src/build-tools/build-binaries.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ const buildAndZipTarget = async (target: string): Promise<void> => {
4949
await compile({
5050
name: 'smartthings',
5151
input: packFile,
52-
resources: ['package.json'],
52+
// nexe's static analysis doesn't always detect the packed entry file as a
53+
// dependency to embed (e.g. it misses it when ncc emits require/import shims
54+
// for ESM-only transitive dependencies), which leaves the compiled binary
55+
// unable to find its own bundled script at runtime. Listing it explicitly
56+
// forces nexe to embed it regardless.
57+
resources: ['package.json', packFile],
5358
remote: 'https://github.com/SmartThingsCommunity/cli-nexe-builds/releases/download/1.0.0',
5459
output: fullBinaryFilename,
5560
python: 'python3',

0 commit comments

Comments
 (0)