@todesktop/cli 1.17.0 → 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 +42 -2
- package/dist/cli.js +122 -104
- package/dist/cli.js.map +3 -3
- package/dist/types.d.ts +19 -0
- package/package.json +14 -25
- package/schemas/schema.json +31 -1
- package/scripts/postinstall.js +0 -19
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.
|
|
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
|
```
|
|
@@ -352,6 +352,35 @@ Useful when your application is a monorepo (e.g. pnpm workspaces). You can confi
|
|
|
352
352
|
|
|
353
353
|
- Example: `{"enabled":true}`
|
|
354
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
|
+
|
|
355
384
|
### `appProtocolScheme` - (optional) string | string[]
|
|
356
385
|
|
|
357
386
|
Default: no protocol scheme is registered
|
|
@@ -1342,6 +1371,17 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1342
1371
|
|
|
1343
1372
|
## Changelog
|
|
1344
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
|
+
|
|
1345
1385
|
### v1.17.0
|
|
1346
1386
|
|
|
1347
1387
|
- Add support for `bundleWorkspacePackages` in config to specify whether the CLI bundles workspace packages alongside the app upload.
|