@todesktop/cli 1.15.2 → 1.18.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 +55 -3
- package/dist/cli.js +779 -149
- package/dist/cli.js.map +4 -4
- package/dist/types.d.ts +28 -0
- package/package.json +15 -25
- package/schemas/schema.json +45 -1
- package/scripts/postinstall.js +0 -19
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ For more information, visit the project [landing page](https://www.todesktop.com
|
|
|
21
21
|
Install the package with:
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
|
-
npm install
|
|
24
|
+
npm install -g @todesktop/cli
|
|
25
25
|
# or
|
|
26
26
|
yarn global add @todesktop/cli
|
|
27
27
|
```
|
|
@@ -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.
|
|
45
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.18.0/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.
|
|
275
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.18.0/schemas/schema.json",
|
|
276
276
|
"id": "your-todesktop-id"
|
|
277
277
|
}
|
|
278
278
|
```
|
|
@@ -344,6 +344,43 @@ The path can be absolute or a relative path from the project root. The directory
|
|
|
344
344
|
|
|
345
345
|
Side note: if your `package.json` contains a `postinstall` script which references scripts, these must be accessible within the `appPath` directory as only the `appPath` is uploaded to our servers.
|
|
346
346
|
|
|
347
|
+
### `bundleWorkspacePackages` - (optional) object
|
|
348
|
+
|
|
349
|
+
- Default: `{"enabled":false}`
|
|
350
|
+
|
|
351
|
+
Useful when your application is a monorepo (e.g. pnpm workspaces). You can configure whether the CLI bundles workspace packages alongside the app upload. When enabled, workspace dependencies referenced via `workspace:` or local `file:` specifiers are bundled with your application upload and dependency ranges are rewritten to `file:` paths so they install deterministically on the build servers.
|
|
352
|
+
|
|
353
|
+
- Example: `{"enabled":true}`
|
|
354
|
+
|
|
355
|
+
### `bytenode` - (optional) object
|
|
356
|
+
|
|
357
|
+
Default: `{"enabled":false}`
|
|
358
|
+
|
|
359
|
+
Compile selected source files to .jsc using Bytenode during the build. Provide glob patterns relative to your appPath.
|
|
360
|
+
|
|
361
|
+
> Experimental: This option may change or be removed in a future release.
|
|
362
|
+
|
|
363
|
+
#### `bytenode.enabled` - (optional) boolean
|
|
364
|
+
|
|
365
|
+
Default: `false`
|
|
366
|
+
|
|
367
|
+
Enable Bytenode compilation.
|
|
368
|
+
|
|
369
|
+
#### `bytenode.files` - (required when enabled) array of glob patterns
|
|
370
|
+
|
|
371
|
+
Glob patterns relative to appPath for files to compile to Bytenode.
|
|
372
|
+
|
|
373
|
+
Example:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"bytenode": {
|
|
378
|
+
"enabled": true,
|
|
379
|
+
"files": ["dist/**/*.js", "main.js", "!renderer.js"]
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
```
|
|
383
|
+
|
|
347
384
|
### `appProtocolScheme` - (optional) string | string[]
|
|
348
385
|
|
|
349
386
|
Default: no protocol scheme is registered
|
|
@@ -1334,6 +1371,21 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1334
1371
|
|
|
1335
1372
|
## Changelog
|
|
1336
1373
|
|
|
1374
|
+
### 1.18.0
|
|
1375
|
+
|
|
1376
|
+
#### Minor Changes
|
|
1377
|
+
|
|
1378
|
+
- 0bf6caf: Add support for bytenode compilation
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
### v1.17.1
|
|
1382
|
+
|
|
1383
|
+
- Fix: `windows.icon` now accepts `.ico` files without triggering schema validation errors.
|
|
1384
|
+
|
|
1385
|
+
### v1.17.0
|
|
1386
|
+
|
|
1387
|
+
- Add support for `bundleWorkspacePackages` in config to specify whether the CLI bundles workspace packages alongside the app upload.
|
|
1388
|
+
|
|
1337
1389
|
### v1.15.2
|
|
1338
1390
|
|
|
1339
1391
|
- Improved error handling in releaseBuild function
|