@todesktop/cli 1.8.1 → 1.9.0

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
@@ -648,6 +648,12 @@ Example: `8.10.5`.
648
648
 
649
649
  The version of pnpm that ToDesktop should use for installation.
650
650
 
651
+ ### `rebuildLibrary` - (optional) string
652
+
653
+ Default: `app-builder`.
654
+
655
+ The library that ToDesktop should use for rebuilding native modules. Valid values are `app-builder` or `@electron/rebuild`.
656
+
651
657
  ### `schemaVersion` - number
652
658
 
653
659
  Example: `1`.
@@ -958,7 +964,7 @@ Example: `[".yarn/**", ".yarnrc.yml", "...include your other changes here..."]`
958
964
 
959
965
  You will want to exclude the `.yarn` directory in the distribution version of your app. You can use the [`filesForDistribution`](#filesForDistribution---optional-array-of-glob-patterns) property to achieve this:
960
966
 
961
- Example: `[".yarn/**", ".yarnrc.yml"]`
967
+ Example: `["!.yarn/**", "!.yarnrc.yml"]`
962
968
 
963
969
  ### How do I create a staging version of my app?
964
970
 
@@ -1050,6 +1056,10 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
1050
1056
 
1051
1057
  ## Changelog
1052
1058
 
1059
+ ## v1.9.0
1060
+
1061
+ - You can now specify `@electron/rebuild` as a custom `rebuildLibrary` in your `todesktop.json` file.
1062
+
1053
1063
  ### v1.8.1
1054
1064
 
1055
1065
  - Revert support for `yarnVersion` in config. Instead use `.yarnrc.yml` file to specify yarn version.
package/dist/cli.js CHANGED
@@ -1451,6 +1451,11 @@ var full_default = (context) => {
1451
1451
  type: "object",
1452
1452
  required: ["id", "icon", "schemaVersion"],
1453
1453
  properties: {
1454
+ appBuilderLibVersion: {
1455
+ type: "string",
1456
+ validSemver: {},
1457
+ minLength: 1
1458
+ },
1454
1459
  appId: { type: "string", minLength: 1 },
1455
1460
  appFiles: {
1456
1461
  type: "array",
@@ -1679,15 +1684,14 @@ var full_default = (context) => {
1679
1684
  validSemver: {},
1680
1685
  minLength: 1
1681
1686
  },
1682
- appBuilderLibVersion: {
1683
- type: "string",
1684
- validSemver: {},
1685
- minLength: 1
1686
- },
1687
1687
  packageManager: {
1688
1688
  type: "string",
1689
1689
  enum: ["npm", "yarn", "pnpm"]
1690
1690
  },
1691
+ rebuildLibrary: {
1692
+ type: "string",
1693
+ enum: ["app-builder", "@electron/rebuild"]
1694
+ },
1691
1695
  schemaVersion: { type: "number", minimum: 1, maximum: 1 },
1692
1696
  snap: {
1693
1697
  type: "object",
@@ -5158,7 +5162,7 @@ var package_default = {
5158
5162
  access: "public"
5159
5163
  },
5160
5164
  name: "@todesktop/cli",
5161
- version: "1.8.0",
5165
+ version: "1.8.1",
5162
5166
  license: "MIT",
5163
5167
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
5164
5168
  homepage: "https://todesktop.com/cli",