@todesktop/cli 1.11.1 → 1.11.3

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
@@ -1160,6 +1160,14 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
1160
1160
 
1161
1161
  ## Changelog
1162
1162
 
1163
+ ### v1.11.3
1164
+
1165
+ - Fix: `linux.imageVersion` now supports any string, not just semver.
1166
+
1167
+ ### v1.11.2
1168
+
1169
+ - Stop erroring in cases where `appId` is not defined in an extended `todesktop.json`.
1170
+
1163
1171
  ### v1.11.1
1164
1172
 
1165
1173
  - You can now specify `linux.imageVersion` to explicitly set the version of the Linux image that ToDesktop should use to build your app.
package/dist/cli.js CHANGED
@@ -1661,8 +1661,7 @@ var schema_default = {
1661
1661
  },
1662
1662
  imageVersion: {
1663
1663
  type: "string",
1664
- minLength: 1,
1665
- validSemver: {}
1664
+ minLength: 1
1666
1665
  },
1667
1666
  noSandbox: {
1668
1667
  type: "boolean"
@@ -2072,11 +2071,17 @@ function computeFullProjectConfig(partialConfig, projectRoot, flags) {
2072
2071
  );
2073
2072
  if ((flags == null ? void 0 : flags.build) && !flags.build.ignoreExtendsErrors) {
2074
2073
  const hasSameId = partialConfig.id === parentFullConfig.id;
2075
- const hasSameAppId = partialConfig.appId === parentFullConfig.appId;
2074
+ const hasSameAppId = partialConfig.appId && parentFullConfig.appId && partialConfig.appId === parentFullConfig.appId;
2076
2075
  if (hasSameId || hasSameAppId) {
2077
2076
  throw new Error(`
2078
2077
  todesktop.json invalid. Cannot have the same "id" or "appId" as an extended todesktop.json file.
2079
2078
 
2079
+ You can disable this error by running todesktop build with the --ignore-extends-errors flag.`);
2080
+ }
2081
+ if (parentFullConfig.appId && !partialConfig.appId) {
2082
+ throw new Error(`
2083
+ todesktop.json invalid. Please add "appId" to your todesktop.json or remove "appId" from the extended todesktop.json.
2084
+
2080
2085
  You can disable this error by running todesktop build with the --ignore-extends-errors flag.`);
2081
2086
  }
2082
2087
  }
@@ -5445,7 +5450,7 @@ var package_default = {
5445
5450
  access: "public"
5446
5451
  },
5447
5452
  name: "@todesktop/cli",
5448
- version: "1.11.0",
5453
+ version: "1.11.2",
5449
5454
  license: "MIT",
5450
5455
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
5451
5456
  homepage: "https://todesktop.com/cli",