@todesktop/cli 1.11.1 → 1.11.2
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 +4 -0
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1160,6 +1160,10 @@ 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.2
|
|
1164
|
+
|
|
1165
|
+
- Stop erroring in cases where `appId` is not defined in an extended `todesktop.json`.
|
|
1166
|
+
|
|
1163
1167
|
### v1.11.1
|
|
1164
1168
|
|
|
1165
1169
|
- 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
|
@@ -2072,11 +2072,17 @@ function computeFullProjectConfig(partialConfig, projectRoot, flags) {
|
|
|
2072
2072
|
);
|
|
2073
2073
|
if ((flags == null ? void 0 : flags.build) && !flags.build.ignoreExtendsErrors) {
|
|
2074
2074
|
const hasSameId = partialConfig.id === parentFullConfig.id;
|
|
2075
|
-
const hasSameAppId = partialConfig.appId === parentFullConfig.appId;
|
|
2075
|
+
const hasSameAppId = partialConfig.appId && parentFullConfig.appId && partialConfig.appId === parentFullConfig.appId;
|
|
2076
2076
|
if (hasSameId || hasSameAppId) {
|
|
2077
2077
|
throw new Error(`
|
|
2078
2078
|
todesktop.json invalid. Cannot have the same "id" or "appId" as an extended todesktop.json file.
|
|
2079
2079
|
|
|
2080
|
+
You can disable this error by running todesktop build with the --ignore-extends-errors flag.`);
|
|
2081
|
+
}
|
|
2082
|
+
if (parentFullConfig.appId && !partialConfig.appId) {
|
|
2083
|
+
throw new Error(`
|
|
2084
|
+
todesktop.json invalid. Please add "appId" to your todesktop.json or remove "appId" from the extended todesktop.json.
|
|
2085
|
+
|
|
2080
2086
|
You can disable this error by running todesktop build with the --ignore-extends-errors flag.`);
|
|
2081
2087
|
}
|
|
2082
2088
|
}
|
|
@@ -5445,7 +5451,7 @@ var package_default = {
|
|
|
5445
5451
|
access: "public"
|
|
5446
5452
|
},
|
|
5447
5453
|
name: "@todesktop/cli",
|
|
5448
|
-
version: "1.11.
|
|
5454
|
+
version: "1.11.1",
|
|
5449
5455
|
license: "MIT",
|
|
5450
5456
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5451
5457
|
homepage: "https://todesktop.com/cli",
|