@todesktop/cli 1.8.1 → 1.9.1
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 +21 -1
- package/dist/cli.js +14 -6
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -538,6 +538,12 @@ This option allows you to configure whether your app should run in a sandboxed e
|
|
|
538
538
|
|
|
539
539
|
We default this to `true` for compatibility reasons because some Linux distributions do not support unprivileged user namespaces.
|
|
540
540
|
|
|
541
|
+
### `includeSubNodeModules` - (optional) boolean
|
|
542
|
+
|
|
543
|
+
Default: `false`
|
|
544
|
+
|
|
545
|
+
Whether to include **all** of the submodules node_modules directories
|
|
546
|
+
|
|
541
547
|
### `mac` - (optional) object
|
|
542
548
|
|
|
543
549
|
Default: We have good default settings for Mac.
|
|
@@ -648,6 +654,12 @@ Example: `8.10.5`.
|
|
|
648
654
|
|
|
649
655
|
The version of pnpm that ToDesktop should use for installation.
|
|
650
656
|
|
|
657
|
+
### `rebuildLibrary` - (optional) string
|
|
658
|
+
|
|
659
|
+
Default: `app-builder`.
|
|
660
|
+
|
|
661
|
+
The library that ToDesktop should use for rebuilding native modules. Valid values are `app-builder` or `@electron/rebuild`.
|
|
662
|
+
|
|
651
663
|
### `schemaVersion` - number
|
|
652
664
|
|
|
653
665
|
Example: `1`.
|
|
@@ -958,7 +970,7 @@ Example: `[".yarn/**", ".yarnrc.yml", "...include your other changes here..."]`
|
|
|
958
970
|
|
|
959
971
|
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
972
|
|
|
961
|
-
Example: `["
|
|
973
|
+
Example: `["!.yarn/**", "!.yarnrc.yml"]`
|
|
962
974
|
|
|
963
975
|
### How do I create a staging version of my app?
|
|
964
976
|
|
|
@@ -1050,6 +1062,14 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1050
1062
|
|
|
1051
1063
|
## Changelog
|
|
1052
1064
|
|
|
1065
|
+
## v1.9.1
|
|
1066
|
+
|
|
1067
|
+
- Add support for `includeSubNodeModules` in config
|
|
1068
|
+
|
|
1069
|
+
## v1.9.0
|
|
1070
|
+
|
|
1071
|
+
- You can now specify `@electron/rebuild` as a custom `rebuildLibrary` in your `todesktop.json` file.
|
|
1072
|
+
|
|
1053
1073
|
### v1.8.1
|
|
1054
1074
|
|
|
1055
1075
|
- 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",
|
|
@@ -1591,6 +1596,10 @@ var full_default = (context) => {
|
|
|
1591
1596
|
}
|
|
1592
1597
|
},
|
|
1593
1598
|
id: { type: "string", minLength: 1 },
|
|
1599
|
+
includeSubNodeModules: {
|
|
1600
|
+
type: "boolean",
|
|
1601
|
+
default: false
|
|
1602
|
+
},
|
|
1594
1603
|
mac: {
|
|
1595
1604
|
type: "object",
|
|
1596
1605
|
properties: {
|
|
@@ -1679,15 +1688,14 @@ var full_default = (context) => {
|
|
|
1679
1688
|
validSemver: {},
|
|
1680
1689
|
minLength: 1
|
|
1681
1690
|
},
|
|
1682
|
-
appBuilderLibVersion: {
|
|
1683
|
-
type: "string",
|
|
1684
|
-
validSemver: {},
|
|
1685
|
-
minLength: 1
|
|
1686
|
-
},
|
|
1687
1691
|
packageManager: {
|
|
1688
1692
|
type: "string",
|
|
1689
1693
|
enum: ["npm", "yarn", "pnpm"]
|
|
1690
1694
|
},
|
|
1695
|
+
rebuildLibrary: {
|
|
1696
|
+
type: "string",
|
|
1697
|
+
enum: ["app-builder", "@electron/rebuild"]
|
|
1698
|
+
},
|
|
1691
1699
|
schemaVersion: { type: "number", minimum: 1, maximum: 1 },
|
|
1692
1700
|
snap: {
|
|
1693
1701
|
type: "object",
|
|
@@ -5158,7 +5166,7 @@ var package_default = {
|
|
|
5158
5166
|
access: "public"
|
|
5159
5167
|
},
|
|
5160
5168
|
name: "@todesktop/cli",
|
|
5161
|
-
version: "1.
|
|
5169
|
+
version: "1.9.0",
|
|
5162
5170
|
license: "MIT",
|
|
5163
5171
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5164
5172
|
homepage: "https://todesktop.com/cli",
|