@todesktop/cli 1.10.0 → 1.10.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/dist/cli.js CHANGED
@@ -1445,452 +1445,563 @@ var addCustomKeywords_default = (ajv, context) => {
1445
1445
  });
1446
1446
  };
1447
1447
 
1448
- // src/utilities/projectConfig/schema/full.ts
1449
- var getItemOrArrayOfItemsSchema = (itemSchema) => {
1450
- return {
1451
- oneOf: [
1452
- itemSchema,
1453
- {
1454
- type: "array",
1455
- items: itemSchema
1456
- }
1457
- ]
1458
- };
1459
- };
1460
- var full_default = (context) => {
1461
- const getIconSchema = (additionalAllowedExtensions = []) => {
1462
- return {
1448
+ // schemas/schema.json
1449
+ var schema_default = {
1450
+ type: "object",
1451
+ required: ["id", "icon", "schemaVersion"],
1452
+ additionalProperties: false,
1453
+ properties: {
1454
+ appBuilderLibVersion: {
1463
1455
  type: "string",
1464
- file: {
1465
- from: context.projectRoot,
1466
- extensions: ["icns", "png", ...additionalAllowedExtensions],
1467
- mustBeFile: true
1468
- },
1469
- minLength: 3
1470
- };
1471
- };
1472
- return {
1473
- type: "object",
1474
- required: ["id", "icon", "schemaVersion"],
1475
- additionalProperties: false,
1476
- properties: {
1477
- appBuilderLibVersion: {
1456
+ validSemver: {},
1457
+ minLength: 1
1458
+ },
1459
+ appId: {
1460
+ type: "string",
1461
+ minLength: 1
1462
+ },
1463
+ appFiles: {
1464
+ type: "array",
1465
+ items: {
1478
1466
  type: "string",
1479
- validSemver: {},
1480
1467
  minLength: 1
1481
1468
  },
1482
- appId: { type: "string", minLength: 1 },
1483
- appFiles: {
1484
- type: "array",
1485
- items: {
1469
+ minItems: 1
1470
+ },
1471
+ appProtocolScheme: {
1472
+ oneOf: [
1473
+ {
1486
1474
  type: "string",
1487
1475
  minLength: 1
1488
1476
  },
1489
- minItems: 1
1490
- },
1491
- appProtocolScheme: {
1492
- oneOf: [
1493
- { type: "string", minLength: 1 },
1494
- {
1495
- type: "array",
1496
- items: { type: "string", minLength: 1 },
1497
- minItems: 1
1498
- }
1499
- ]
1500
- },
1501
- appPath: {
1502
- type: "string",
1503
- file: {
1504
- from: context.projectRoot,
1505
- isOptional: true,
1506
- mustBeElectronApp: true
1507
- }
1508
- },
1509
- asar: {
1510
- type: "boolean",
1511
- default: true
1512
- },
1513
- asarUnpack: {
1514
- oneOf: [
1515
- { type: "boolean" },
1516
- {
1517
- type: "array",
1518
- items: {
1519
- type: "string",
1520
- minLength: 1
1521
- },
1522
- minItems: 1
1523
- }
1524
- ]
1525
- },
1526
- buildVersion: { type: "string", minLength: 1 },
1527
- copyright: { type: "string", minLength: 1 },
1528
- electronMirror: {
1529
- type: "string",
1530
- format: "uri"
1531
- },
1532
- electronVersion: {
1533
- type: "string",
1534
- minLength: 1
1535
- },
1536
- extraContentFiles: {
1537
- type: "array",
1538
- items: {
1539
- type: "object",
1540
- required: ["from"],
1541
- additionalProperties: false,
1542
- properties: {
1543
- from: {
1544
- type: "string",
1545
- file: { from: context.projectRoot }
1546
- },
1547
- to: { type: "string" }
1548
- }
1549
- }
1550
- },
1551
- extraResources: {
1552
- type: "array",
1553
- items: {
1554
- type: "object",
1555
- required: ["from"],
1556
- additionalProperties: false,
1557
- properties: {
1558
- from: {
1559
- type: "string",
1560
- file: { from: context.projectRoot }
1561
- },
1562
- to: { type: "string" }
1563
- }
1477
+ {
1478
+ type: "array",
1479
+ items: {
1480
+ type: "string",
1481
+ minLength: 1
1482
+ },
1483
+ minItems: 1
1564
1484
  }
1565
- },
1566
- fileAssociations: {
1567
- type: "array",
1568
- items: {
1569
- type: "object",
1570
- required: ["ext"],
1571
- additionalProperties: false,
1572
- properties: {
1573
- ext: getItemOrArrayOfItemsSchema({
1574
- type: "string",
1575
- minLength: 1
1576
- }),
1577
- description: {
1578
- type: "string",
1579
- minLength: 1
1580
- },
1581
- name: {
1582
- type: "string",
1583
- minLength: 1
1584
- },
1585
- mimeType: {
1586
- type: "string",
1587
- minLength: 1
1588
- },
1589
- icon: {
1590
- type: "string",
1591
- minLength: 1
1592
- },
1593
- role: {
1594
- type: "string",
1595
- minLength: 1
1596
- },
1597
- isPackage: {
1598
- type: "boolean"
1599
- },
1600
- rank: {
1601
- type: "string",
1602
- minLength: 1
1603
- }
1604
- }
1605
- },
1606
- minItems: 1
1607
- },
1608
- filesForDistribution: {
1609
- type: "array",
1610
- items: {
1611
- type: "string",
1612
- minLength: 1
1485
+ ]
1486
+ },
1487
+ appPath: {
1488
+ type: "string",
1489
+ file: {
1490
+ isOptional: true,
1491
+ mustBeElectronApp: true
1492
+ }
1493
+ },
1494
+ asar: {
1495
+ type: "boolean",
1496
+ default: true
1497
+ },
1498
+ asarUnpack: {
1499
+ oneOf: [
1500
+ {
1501
+ type: "boolean"
1613
1502
  },
1614
- minItems: 1
1615
- },
1616
- icon: getIconSchema(),
1617
- linux: {
1503
+ {
1504
+ type: "array",
1505
+ items: {
1506
+ type: "string",
1507
+ minLength: 1
1508
+ },
1509
+ minItems: 1
1510
+ }
1511
+ ]
1512
+ },
1513
+ buildVersion: {
1514
+ type: "string",
1515
+ minLength: 1
1516
+ },
1517
+ copyright: {
1518
+ type: "string",
1519
+ minLength: 1
1520
+ },
1521
+ electronMirror: {
1522
+ type: "string",
1523
+ format: "uri"
1524
+ },
1525
+ electronVersion: {
1526
+ type: "string",
1527
+ minLength: 1
1528
+ },
1529
+ extends: {
1530
+ type: "string",
1531
+ minLength: 1
1532
+ },
1533
+ extraContentFiles: {
1534
+ type: "array",
1535
+ items: {
1618
1536
  type: "object",
1537
+ required: ["from"],
1619
1538
  additionalProperties: false,
1620
1539
  properties: {
1621
- category: { type: "string", minLength: 1 },
1622
- icon: getIconSchema(),
1623
- noSandbox: { type: "boolean" }
1540
+ from: {
1541
+ type: "string",
1542
+ file: {}
1543
+ },
1544
+ to: {
1545
+ type: "string"
1546
+ }
1624
1547
  }
1625
- },
1626
- id: { type: "string", minLength: 1 },
1627
- includeSubNodeModules: {
1628
- type: "boolean",
1629
- default: false
1630
- },
1631
- mac: {
1548
+ }
1549
+ },
1550
+ extraResources: {
1551
+ type: "array",
1552
+ items: {
1632
1553
  type: "object",
1554
+ required: ["from"],
1633
1555
  additionalProperties: false,
1634
1556
  properties: {
1635
- category: { type: "string", minLength: 1 },
1636
- additionalBinariesToSign: {
1637
- type: "array",
1638
- items: {
1639
- type: "string",
1640
- minLength: 1
1641
- }
1642
- },
1643
- entitlements: {
1557
+ from: {
1644
1558
  type: "string",
1645
1559
  file: {
1646
- from: context.projectRoot,
1647
- extensions: ["plist"],
1648
- mustBeFile: true
1649
- },
1650
- minLength: 1
1651
- },
1652
- entitlementsInherit: {
1653
- type: "string",
1654
- file: {
1655
- from: context.projectRoot,
1656
- extensions: ["plist"],
1657
- mustBeFile: true
1658
- },
1659
- minLength: 1
1660
- },
1661
- extendInfo: {
1662
- type: "object"
1560
+ from: "context.projectRoot"
1561
+ }
1663
1562
  },
1664
- icon: getIconSchema(),
1665
- requirements: {
1666
- type: "string",
1667
- file: {
1668
- from: context.projectRoot,
1669
- extensions: ["txt"],
1670
- mustBeFile: true
1671
- },
1672
- minLength: 1
1563
+ to: {
1564
+ type: "string"
1673
1565
  }
1674
1566
  }
1675
- },
1676
- mas: {
1567
+ }
1568
+ },
1569
+ fileAssociations: {
1570
+ type: "array",
1571
+ items: {
1677
1572
  type: "object",
1573
+ required: ["ext"],
1678
1574
  additionalProperties: false,
1679
1575
  properties: {
1680
- entitlements: {
1576
+ ext: {
1577
+ oneOf: [
1578
+ {
1579
+ type: "string",
1580
+ minLength: 1
1581
+ },
1582
+ {
1583
+ type: "array",
1584
+ items: {
1585
+ type: "string",
1586
+ minLength: 1
1587
+ }
1588
+ }
1589
+ ]
1590
+ },
1591
+ description: {
1681
1592
  type: "string",
1682
- file: {
1683
- from: context.projectRoot,
1684
- extensions: ["plist"],
1685
- mustBeFile: true
1686
- },
1687
1593
  minLength: 1
1688
1594
  },
1689
- entitlementsInherit: {
1595
+ name: {
1690
1596
  type: "string",
1691
- file: {
1692
- from: context.projectRoot,
1693
- extensions: ["plist"],
1694
- mustBeFile: true
1695
- },
1696
1597
  minLength: 1
1697
1598
  },
1698
- provisioningProfile: {
1599
+ mimeType: {
1699
1600
  type: "string",
1700
- file: {
1701
- from: context.projectRoot,
1702
- extensions: ["provisionprofile"],
1703
- mustBeFile: true
1704
- },
1705
1601
  minLength: 1
1706
1602
  },
1707
- type: {
1603
+ icon: {
1708
1604
  type: "string",
1709
- enum: ["development", "distribution"]
1605
+ minLength: 1
1710
1606
  },
1711
- x64ArchFiles: {
1712
- type: "string"
1713
- }
1714
- }
1715
- },
1716
- dmg: {
1717
- type: "object",
1718
- additionalProperties: false,
1719
- properties: {
1720
- background: {
1607
+ role: {
1721
1608
  type: "string",
1722
- file: {
1723
- from: context.projectRoot,
1724
- extensions: ["tiff"],
1725
- mustBeFile: true
1726
- },
1727
1609
  minLength: 1
1728
1610
  },
1729
- artifactName: { type: "string", minLength: 1 },
1730
- backgroundColor: { type: "string", minLength: 1 },
1731
- iconSize: { type: "number" },
1732
- iconTextSize: { type: "number" },
1733
- title: { type: "string", minLength: 1 },
1734
- contents: {
1735
- type: "array",
1736
- items: {
1737
- type: "object",
1738
- additionalProperties: false,
1739
- properties: {
1740
- x: { type: "number" },
1741
- y: { type: "number" }
1742
- }
1743
- }
1611
+ isPackage: {
1612
+ type: "boolean"
1744
1613
  },
1745
- window: {
1746
- type: "object",
1747
- additionalProperties: false,
1748
- properties: {
1749
- x: { type: "number" },
1750
- y: { type: "number" },
1751
- width: { type: "number" },
1752
- height: { type: "number" }
1753
- }
1614
+ rank: {
1615
+ type: "string",
1616
+ enum: ["Owner", "Default", "Alternate", "None"]
1754
1617
  }
1755
1618
  }
1756
1619
  },
1757
- nodeVersion: {
1758
- type: "string",
1759
- validSemver: {},
1760
- minLength: 1
1761
- },
1762
- npmVersion: {
1763
- type: "string",
1764
- validSemver: {},
1765
- minLength: 1
1766
- },
1767
- pnpmVersion: {
1620
+ minItems: 1
1621
+ },
1622
+ filesForDistribution: {
1623
+ type: "array",
1624
+ items: {
1768
1625
  type: "string",
1769
- validSemver: {},
1770
1626
  minLength: 1
1771
1627
  },
1772
- packageManager: {
1773
- type: "string",
1774
- enum: ["npm", "yarn", "pnpm"]
1775
- },
1776
- rebuildLibrary: {
1777
- type: "string",
1778
- enum: ["app-builder", "@electron/rebuild"]
1628
+ minItems: 1
1629
+ },
1630
+ icon: {
1631
+ type: "string",
1632
+ file: {
1633
+ extensions: ["icns", "png"],
1634
+ mustBeFile: true
1779
1635
  },
1780
- schemaVersion: { type: "number", minimum: 1, maximum: 1 },
1781
- snap: {
1782
- type: "object",
1783
- additionalProperties: false,
1784
- properties: {
1785
- after: {
1786
- type: "array",
1787
- items: {
1788
- type: "string",
1789
- minLength: 1
1790
- }
1791
- },
1792
- appPartStage: {
1793
- type: "array",
1794
- items: {
1795
- type: "string",
1796
- minLength: 1
1797
- }
1636
+ minLength: 3
1637
+ },
1638
+ linux: {
1639
+ type: "object",
1640
+ additionalProperties: false,
1641
+ properties: {
1642
+ category: {
1643
+ type: "string",
1644
+ minLength: 1
1645
+ },
1646
+ icon: {
1647
+ type: "string",
1648
+ file: {
1649
+ extensions: ["icns", "png"],
1650
+ mustBeFile: true
1798
1651
  },
1799
- assumes: getItemOrArrayOfItemsSchema({
1652
+ minLength: 3
1653
+ },
1654
+ noSandbox: {
1655
+ type: "boolean"
1656
+ }
1657
+ }
1658
+ },
1659
+ id: {
1660
+ type: "string",
1661
+ minLength: 1
1662
+ },
1663
+ includeSubNodeModules: {
1664
+ type: "boolean",
1665
+ default: false
1666
+ },
1667
+ mac: {
1668
+ type: "object",
1669
+ additionalProperties: false,
1670
+ properties: {
1671
+ category: {
1672
+ type: "string",
1673
+ minLength: 1
1674
+ },
1675
+ additionalBinariesToSign: {
1676
+ type: "array",
1677
+ items: {
1800
1678
  type: "string",
1801
1679
  minLength: 1
1802
- }),
1803
- autoStart: {
1804
- type: "boolean"
1805
- },
1806
- buildPackages: {
1807
- type: "array",
1808
- items: {
1809
- type: "string",
1810
- minLength: 1
1811
- }
1812
- },
1813
- confinement: {
1814
- type: "string",
1815
- enum: ["classic", "devmode", "strict"]
1680
+ }
1681
+ },
1682
+ entitlements: {
1683
+ type: "string",
1684
+ file: {
1685
+ extensions: ["plist"],
1686
+ mustBeFile: true
1816
1687
  },
1817
- environment: {
1818
- type: "object"
1688
+ minLength: 1
1689
+ },
1690
+ entitlementsInherit: {
1691
+ type: "string",
1692
+ file: {
1693
+ extensions: ["plist"],
1694
+ mustBeFile: true
1819
1695
  },
1820
- grade: {
1821
- type: "string",
1822
- enum: ["devel", "stable"]
1696
+ minLength: 1
1697
+ },
1698
+ extendInfo: {
1699
+ type: "object"
1700
+ },
1701
+ icon: {
1702
+ type: "string",
1703
+ file: {
1704
+ extensions: ["icns", "png"],
1705
+ mustBeFile: true
1823
1706
  },
1824
- layout: {
1825
- type: "object"
1707
+ minLength: 3
1708
+ },
1709
+ requirements: {
1710
+ type: "string",
1711
+ file: {
1712
+ extensions: ["txt"],
1713
+ mustBeFile: true
1826
1714
  },
1827
- plugs: {
1828
- type: "array",
1829
- items: {
1830
- anyOf: [
1831
- {
1832
- type: "string",
1833
- minLength: 1
1834
- },
1835
- {
1836
- type: "object"
1837
- }
1838
- ]
1839
- }
1715
+ minLength: 1
1716
+ }
1717
+ }
1718
+ },
1719
+ mas: {
1720
+ type: "object",
1721
+ additionalProperties: false,
1722
+ properties: {
1723
+ entitlements: {
1724
+ type: "string",
1725
+ file: {
1726
+ extensions: ["plist"],
1727
+ mustBeFile: true
1840
1728
  },
1841
- stagePackages: {
1842
- type: "array",
1843
- items: {
1844
- type: "string",
1845
- minLength: 1
1846
- }
1729
+ minLength: 1
1730
+ },
1731
+ entitlementsInherit: {
1732
+ type: "string",
1733
+ file: {
1734
+ extensions: ["plist"],
1735
+ mustBeFile: true
1847
1736
  },
1848
- summary: {
1849
- type: "string",
1850
- maxLength: 78
1737
+ minLength: 1
1738
+ },
1739
+ provisioningProfile: {
1740
+ type: "string",
1741
+ file: {
1742
+ extensions: ["provisionprofile"],
1743
+ mustBeFile: true
1851
1744
  },
1852
- useTemplateApp: {
1853
- type: "boolean"
1854
- }
1745
+ minLength: 1
1746
+ },
1747
+ type: {
1748
+ type: "string",
1749
+ enum: ["development", "distribution"]
1750
+ },
1751
+ x64ArchFiles: {
1752
+ type: "string"
1855
1753
  }
1856
- },
1857
- uploadSizeLimit: {
1858
- type: "number"
1859
- },
1860
- windows: {
1861
- type: "object",
1862
- additionalProperties: false,
1863
- properties: {
1864
- icon: getIconSchema(["ico"]),
1865
- nsisCustomBinary: {
1754
+ }
1755
+ },
1756
+ dmg: {
1757
+ type: "object",
1758
+ additionalProperties: false,
1759
+ properties: {
1760
+ background: {
1761
+ type: "string",
1762
+ file: {
1763
+ extensions: ["tiff"],
1764
+ mustBeFile: true
1765
+ },
1766
+ minLength: 1
1767
+ },
1768
+ artifactName: {
1769
+ type: "string",
1770
+ minLength: 1
1771
+ },
1772
+ backgroundColor: {
1773
+ type: "string",
1774
+ minLength: 1
1775
+ },
1776
+ iconSize: {
1777
+ type: "number"
1778
+ },
1779
+ iconTextSize: {
1780
+ type: "number"
1781
+ },
1782
+ title: {
1783
+ type: "string",
1784
+ minLength: 1
1785
+ },
1786
+ contents: {
1787
+ type: "array",
1788
+ items: {
1866
1789
  type: "object",
1867
1790
  additionalProperties: false,
1868
1791
  properties: {
1869
- checksum: { type: "string" },
1870
- debugLogging: { type: "boolean" },
1871
- url: { type: "string" },
1872
- version: { type: "string" }
1792
+ x: {
1793
+ type: "number"
1794
+ },
1795
+ y: {
1796
+ type: "number"
1797
+ }
1873
1798
  }
1874
- },
1875
- nsisInclude: {
1876
- type: "string",
1877
- file: {
1878
- from: context.projectRoot,
1879
- extensions: ["nsh"],
1880
- mustBeFile: true
1799
+ }
1800
+ },
1801
+ window: {
1802
+ type: "object",
1803
+ additionalProperties: false,
1804
+ properties: {
1805
+ x: {
1806
+ type: "number"
1807
+ },
1808
+ y: {
1809
+ type: "number"
1810
+ },
1811
+ width: {
1812
+ type: "number"
1813
+ },
1814
+ height: {
1815
+ type: "number"
1881
1816
  }
1882
- },
1883
- publisherName: {
1884
- type: "array",
1885
- items: {
1817
+ }
1818
+ }
1819
+ }
1820
+ },
1821
+ nodeVersion: {
1822
+ type: "string",
1823
+ validSemver: {},
1824
+ minLength: 1
1825
+ },
1826
+ npmVersion: {
1827
+ type: "string",
1828
+ validSemver: {},
1829
+ minLength: 1
1830
+ },
1831
+ pnpmVersion: {
1832
+ type: "string",
1833
+ validSemver: {},
1834
+ minLength: 1
1835
+ },
1836
+ packageJson: {
1837
+ type: "object"
1838
+ },
1839
+ packageManager: {
1840
+ type: "string",
1841
+ enum: ["npm", "yarn", "pnpm"]
1842
+ },
1843
+ rebuildLibrary: {
1844
+ type: "string",
1845
+ enum: ["app-builder", "@electron/rebuild"]
1846
+ },
1847
+ schemaVersion: {
1848
+ type: "number",
1849
+ minimum: 1,
1850
+ maximum: 1
1851
+ },
1852
+ snap: {
1853
+ type: "object",
1854
+ additionalProperties: false,
1855
+ properties: {
1856
+ after: {
1857
+ type: "array",
1858
+ items: {
1859
+ type: "string",
1860
+ minLength: 1
1861
+ }
1862
+ },
1863
+ appPartStage: {
1864
+ type: "array",
1865
+ items: {
1866
+ type: "string",
1867
+ minLength: 1
1868
+ }
1869
+ },
1870
+ assumes: {
1871
+ oneOf: [
1872
+ {
1886
1873
  type: "string",
1887
1874
  minLength: 1
1875
+ },
1876
+ {
1877
+ type: "array",
1878
+ items: {
1879
+ type: "string",
1880
+ minLength: 1
1881
+ }
1882
+ }
1883
+ ]
1884
+ },
1885
+ autoStart: {
1886
+ type: "boolean"
1887
+ },
1888
+ buildPackages: {
1889
+ type: "array",
1890
+ items: {
1891
+ type: "string",
1892
+ minLength: 1
1893
+ }
1894
+ },
1895
+ confinement: {
1896
+ type: "string",
1897
+ enum: ["classic", "devmode", "strict"]
1898
+ },
1899
+ environment: {
1900
+ type: "object"
1901
+ },
1902
+ grade: {
1903
+ type: "string",
1904
+ enum: ["devel", "stable"]
1905
+ },
1906
+ layout: {
1907
+ type: "object"
1908
+ },
1909
+ plugs: {
1910
+ type: "array",
1911
+ items: {
1912
+ anyOf: [
1913
+ {
1914
+ type: "string",
1915
+ minLength: 1
1916
+ },
1917
+ {
1918
+ type: "object"
1919
+ }
1920
+ ]
1921
+ }
1922
+ },
1923
+ stagePackages: {
1924
+ type: "array",
1925
+ items: {
1926
+ type: "string",
1927
+ minLength: 1
1928
+ }
1929
+ },
1930
+ summary: {
1931
+ type: "string",
1932
+ maxLength: 78
1933
+ },
1934
+ useTemplateApp: {
1935
+ type: "boolean"
1936
+ }
1937
+ }
1938
+ },
1939
+ uploadSizeLimit: {
1940
+ type: "number"
1941
+ },
1942
+ windows: {
1943
+ type: "object",
1944
+ additionalProperties: false,
1945
+ properties: {
1946
+ icon: {
1947
+ type: "string",
1948
+ file: {
1949
+ extensions: ["icns", "png", "icon"],
1950
+ mustBeFile: true
1951
+ },
1952
+ minLength: 3
1953
+ },
1954
+ nsisCustomBinary: {
1955
+ type: "object",
1956
+ additionalProperties: false,
1957
+ properties: {
1958
+ checksum: {
1959
+ type: "string"
1960
+ },
1961
+ debugLogging: {
1962
+ type: "boolean"
1963
+ },
1964
+ url: {
1965
+ type: "string"
1966
+ },
1967
+ version: {
1968
+ type: "string"
1888
1969
  }
1889
1970
  }
1971
+ },
1972
+ nsisInclude: {
1973
+ type: "string",
1974
+ file: {
1975
+ extensions: ["nsh"],
1976
+ mustBeFile: true
1977
+ }
1978
+ },
1979
+ publisherName: {
1980
+ type: "array",
1981
+ items: {
1982
+ type: "string",
1983
+ minLength: 1
1984
+ }
1890
1985
  }
1891
1986
  }
1892
1987
  }
1893
- };
1988
+ }
1989
+ };
1990
+
1991
+ // src/utilities/projectConfig/schema/full.ts
1992
+ var full_default = (context) => {
1993
+ function updateFileProperty(record) {
1994
+ for (const key in record) {
1995
+ const value = record[key];
1996
+ if (key === "file" && typeof value === "object") {
1997
+ value["from"] = context.projectRoot;
1998
+ } else if (typeof value === "object" && value !== null) {
1999
+ updateFileProperty(value);
2000
+ }
2001
+ }
2002
+ }
2003
+ updateFileProperty(schema_default);
2004
+ return schema_default;
1894
2005
  };
1895
2006
 
1896
2007
  // src/utilities/projectConfig/validateConfig.ts
@@ -2864,12 +2975,6 @@ var LoginHOC = ({ children, isInteractive = true }) => {
2864
2975
  const [isEffectDone, setEffectDone] = (0, import_react10.useState)(false);
2865
2976
  const [error, setError] = (0, import_react10.useState)(null);
2866
2977
  const { isRawModeSupported } = (0, import_ink16.useStdin)();
2867
- const onFailure = (message2, err = {}) => {
2868
- setError({
2869
- ...err,
2870
- message: message2
2871
- });
2872
- };
2873
2978
  (0, import_react10.useEffect)(() => {
2874
2979
  async function isAccessTokenValid() {
2875
2980
  const { accessToken, email, jwtToken } = getAuthConfig();
@@ -2890,12 +2995,17 @@ var LoginHOC = ({ children, isInteractive = true }) => {
2890
2995
  setIsLoggedIn(true);
2891
2996
  }
2892
2997
  } else if (!isRawModeSupported || import_is_ci4.default) {
2893
- onFailure(
2894
- "ToDesktop environment variables not found. When automating builds with your CI provider, you need to specify environment variables for TODESKTOP_EMAIL and TODESKTOP_ACCESS_TOKEN."
2998
+ setError(
2999
+ new Error(
3000
+ "ToDesktop environment variables not found. When automating builds with your CI provider, you need to specify environment variables for TODESKTOP_EMAIL and TODESKTOP_ACCESS_TOKEN."
3001
+ )
2895
3002
  );
2896
3003
  }
2897
3004
  } catch (err) {
2898
- onFailure("Log in with environment variables failed.", err);
3005
+ if (typeof err === "object") {
3006
+ err.message = "Log in with environment variables failed.";
3007
+ }
3008
+ setError(err);
2899
3009
  }
2900
3010
  try {
2901
3011
  if (!userCreds && jwtToken) {
@@ -5310,7 +5420,7 @@ var package_default = {
5310
5420
  access: "public"
5311
5421
  },
5312
5422
  name: "@todesktop/cli",
5313
- version: "1.9.8",
5423
+ version: "1.10.1",
5314
5424
  license: "MIT",
5315
5425
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
5316
5426
  homepage: "https://todesktop.com/cli",
@@ -5337,9 +5447,12 @@ var package_default = {
5337
5447
  release: "npm run build && npx np --tag=latest",
5338
5448
  "release-beta": "npm run build && npx np --any-branch --no-tests --tag=beta",
5339
5449
  test: "ava",
5340
- "test--watch": "npm test -- --watch"
5450
+ "test--watch": "npm test -- --watch",
5451
+ postinstall: "node scripts/postinstall.js"
5341
5452
  },
5342
5453
  files: [
5454
+ "scripts",
5455
+ "schemas",
5343
5456
  "dist",
5344
5457
  "docs",
5345
5458
  ".env",