@todesktop/cli 1.15.1 → 1.15.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 +6 -2
- package/dist/cli.js +6 -4
- package/dist/cli.js.map +2 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ Create a `todesktop.json` file in the root of your Electron project.
|
|
|
42
42
|
|
|
43
43
|
```json
|
|
44
44
|
{
|
|
45
|
-
"$schema": "https://unpkg.com/@todesktop/cli@1.15.
|
|
45
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.15.1/schemas/schema.json",
|
|
46
46
|
"schemaVersion": 1
|
|
47
47
|
"id": "your-todesktop-id",
|
|
48
48
|
"icon": "./desktop-icon.png",
|
|
@@ -272,7 +272,7 @@ To enable JSON validation and IntelliSense for your `todesktop.json` file in com
|
|
|
272
272
|
- For example, if using a hosted version of the schema:
|
|
273
273
|
```json
|
|
274
274
|
{
|
|
275
|
-
"$schema": "https://unpkg.com/@todesktop/cli@1.15.
|
|
275
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.15.1/schemas/schema.json",
|
|
276
276
|
"id": "your-todesktop-id"
|
|
277
277
|
}
|
|
278
278
|
```
|
|
@@ -1334,6 +1334,10 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1334
1334
|
|
|
1335
1335
|
## Changelog
|
|
1336
1336
|
|
|
1337
|
+
### v1.15.2
|
|
1338
|
+
|
|
1339
|
+
- Improved error handling in releaseBuild function
|
|
1340
|
+
|
|
1337
1341
|
### v1.15.1
|
|
1338
1342
|
|
|
1339
1343
|
- Update dependencies to latest non-breaking versions.
|
package/dist/cli.js
CHANGED
|
@@ -4971,8 +4971,9 @@ async function releaseBuild({
|
|
|
4971
4971
|
try {
|
|
4972
4972
|
await getCallableFirebaseFunction_default("releaseBuild")({ appId, buildId });
|
|
4973
4973
|
} catch (e) {
|
|
4974
|
-
if (isFirebaseFunctionError(e)
|
|
4975
|
-
|
|
4974
|
+
if (isFirebaseFunctionError(e)) {
|
|
4975
|
+
const errorType = e.code === "failed-precondition" || e.code === "not-found" ? "build-error" : "error";
|
|
4976
|
+
throw CliError.from(e, errorType);
|
|
4976
4977
|
} else {
|
|
4977
4978
|
throw new CliError("Unexpected internal error while releasing build");
|
|
4978
4979
|
}
|
|
@@ -6025,7 +6026,7 @@ var package_default = {
|
|
|
6025
6026
|
access: "public"
|
|
6026
6027
|
},
|
|
6027
6028
|
name: "@todesktop/cli",
|
|
6028
|
-
version: "1.15.
|
|
6029
|
+
version: "1.15.1",
|
|
6029
6030
|
license: "MIT",
|
|
6030
6031
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
6031
6032
|
homepage: "https://todesktop.com/cli",
|
|
@@ -6155,7 +6156,8 @@ var package_default = {
|
|
|
6155
6156
|
"**/*.test.tsx",
|
|
6156
6157
|
"!build/**/*",
|
|
6157
6158
|
"!test/fixtures/**/*",
|
|
6158
|
-
"!test/utilities/**/*"
|
|
6159
|
+
"!test/utilities/**/*",
|
|
6160
|
+
"!worktrees/**/*"
|
|
6159
6161
|
],
|
|
6160
6162
|
require: [
|
|
6161
6163
|
"esbuild-register",
|