@todesktop/cli 1.12.1 → 1.12.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 +10 -0
- package/dist/cli.js +5 -3
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -951,6 +951,12 @@ Default: Default to the common name from your code signing certificate.
|
|
|
951
951
|
|
|
952
952
|
The publisher name, exactly as in your code signing certificate. Several names can be provided. Defaults to common name from your code signing certificate. You should typically not include this property in your configuration unless you wish to transition to a new certificate in the future.
|
|
953
953
|
|
|
954
|
+
### `appBuilderLibVersion` - (optional) string
|
|
955
|
+
|
|
956
|
+
Example: `22.14.13`.
|
|
957
|
+
|
|
958
|
+
The version of app-builder-lib that ToDesktop should use for building your app. This can be useful if you need to use a specific version that includes certain features or fixes.
|
|
959
|
+
|
|
954
960
|
## Build lifecycle hooks (package.json scripts)
|
|
955
961
|
|
|
956
962
|
Sometimes you want to do something before or during the build process. For example, you might want to run a script before the build starts, or you might want to run a script after the files have been packaged. Our lifecycle hooks provide a way to do this.
|
|
@@ -1195,6 +1201,10 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1195
1201
|
|
|
1196
1202
|
## Changelog
|
|
1197
1203
|
|
|
1204
|
+
### v1.12.2
|
|
1205
|
+
|
|
1206
|
+
- Fix: Update `appFiles` to not error when no `*.js` files are found (but `*.ts` files are present)
|
|
1207
|
+
|
|
1198
1208
|
### v1.12.1
|
|
1199
1209
|
|
|
1200
1210
|
- Remove sensitive data when logging to `main.log`
|
package/dist/cli.js
CHANGED
|
@@ -2485,9 +2485,11 @@ var getAppFiles = async (globsInput, appPath, appPkgJson) => {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
if (!absolutePaths || !absolutePaths.length) {
|
|
2487
2487
|
throw new Error("No files found to upload");
|
|
2488
|
-
} else if (!absolutePaths.filter(
|
|
2488
|
+
} else if (!absolutePaths.filter(
|
|
2489
|
+
(absolutePath) => absolutePath.endsWith(".js") || absolutePath.endsWith(".ts")
|
|
2490
|
+
).length) {
|
|
2489
2491
|
throw new Error(
|
|
2490
|
-
`No .js files found to upload (${absolutePaths[0]}). There's likely an issue with the appFiles option. Learn more at https://www.npmjs.com/package/@todesktop/cli#appfiles----optional-array-of-glob-patterns. If this is not the case, please contact us.`
|
|
2492
|
+
`No .js/.ts files found to upload (${absolutePaths[0]}). There's likely an issue with the appFiles option. Learn more at https://www.npmjs.com/package/@todesktop/cli#appfiles----optional-array-of-glob-patterns. If this is not the case, please contact us.`
|
|
2491
2493
|
);
|
|
2492
2494
|
} else {
|
|
2493
2495
|
let mainFilePath = appPath;
|
|
@@ -5505,7 +5507,7 @@ var package_default = {
|
|
|
5505
5507
|
access: "public"
|
|
5506
5508
|
},
|
|
5507
5509
|
name: "@todesktop/cli",
|
|
5508
|
-
version: "1.12.
|
|
5510
|
+
version: "1.12.1",
|
|
5509
5511
|
license: "MIT",
|
|
5510
5512
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5511
5513
|
homepage: "https://todesktop.com/cli",
|