@lvgl/lvglpro 2.0.1-124-gac1761 → 2.0.1-128-g2fc032

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The LVGL Pro CLI provides command-line access to LVGL Pro Editor workflows. It can generate C code from XML projects, compile project runtimes, validate projects, compare generated output, run XML interaction tests, and capture screenshots.
4
4
 
5
- **NOTE**: The LVGL Pro CLI requires a token to operate. You can obtain the token from your [https://lvgl.io/pro](lvgl.io/pro) dashhboard, if your license supports it.
5
+ **NOTE**: The LVGL Pro CLI requires a token to operate. You can obtain the token from your [https://lvgl.io/pro](lvgl.io/pro) dashboard, if your license supports it.
6
6
 
7
7
  ## Features
8
8
 
package/bin/lvglpro.js CHANGED
@@ -10,10 +10,20 @@ const platformPackageName = `${rootPackageName}-${platformKey}`;
10
10
  let bundlePath;
11
11
  try {
12
12
  bundlePath = require.resolve(`${platformPackageName}/lvglpro.js`);
13
- } catch {
14
- console.error(`The LVGL CLI does not support this platform (${platformKey}).`);
15
- console.error(`Expected optional dependency "${platformPackageName}" to be installed.`);
13
+ } catch (error) {
14
+ console.error(`Could not find "${platformPackageName}", the LVGL CLI binary for this platform (${platformKey}).`);
15
+ console.error(
16
+ 'This platform may be unsupported, or the optional dependency was skipped during install ' +
17
+ '(e.g. a registry/network error, or npm install --omit=optional).'
18
+ );
19
+ console.error(error);
16
20
  process.exit(1);
17
21
  }
18
22
 
19
- require(bundlePath);
23
+ try {
24
+ require(bundlePath);
25
+ } catch (error) {
26
+ console.error(`Failed to load the LVGL CLI bundle for this platform (${platformKey}): ${bundlePath}`);
27
+ console.error(error);
28
+ process.exit(1);
29
+ }
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@lvgl/lvglpro",
3
- "version": "2.0.1-124-gac1761",
3
+ "version": "2.0.1-128-g2fc032",
4
4
  "description": "Command-line access to LVGL Pro Editor workflows: generate C code from XML projects, compile runtimes, validate projects, and more.",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "lvglpro": "bin/lvglpro.js"
8
8
  },
9
9
  "optionalDependencies": {
10
- "@lvgl/lvglpro-win32-x64": "2.0.1-124-gac1761",
11
- "@lvgl/lvglpro-linux-x64": "2.0.1-124-gac1761",
12
- "@lvgl/lvglpro-darwin-arm64": "2.0.1-124-gac1761"
10
+ "@lvgl/lvglpro-win32-x64": "2.0.1-128-g2fc032",
11
+ "@lvgl/lvglpro-linux-x64": "2.0.1-128-g2fc032",
12
+ "@lvgl/lvglpro-darwin-arm64": "2.0.1-128-g2fc032",
13
+ "@lvgl/lvglpro-darwin-x64": "2.0.1-128-g2fc032"
13
14
  }
14
15
  }