@todesktop/cli 1.10.1 → 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,456 +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
- extends: { type: "string", minLength: 1 },
1537
- extraContentFiles: {
1538
- type: "array",
1539
- items: {
1540
- type: "object",
1541
- required: ["from"],
1542
- additionalProperties: false,
1543
- properties: {
1544
- from: {
1545
- type: "string",
1546
- file: { from: context.projectRoot }
1547
- },
1548
- to: { type: "string" }
1549
- }
1550
- }
1551
- },
1552
- extraResources: {
1553
- type: "array",
1554
- items: {
1555
- type: "object",
1556
- required: ["from"],
1557
- additionalProperties: false,
1558
- properties: {
1559
- from: {
1560
- type: "string",
1561
- file: { from: context.projectRoot }
1562
- },
1563
- to: { type: "string" }
1564
- }
1477
+ {
1478
+ type: "array",
1479
+ items: {
1480
+ type: "string",
1481
+ minLength: 1
1482
+ },
1483
+ minItems: 1
1565
1484
  }
1566
- },
1567
- fileAssociations: {
1568
- type: "array",
1569
- items: {
1570
- type: "object",
1571
- required: ["ext"],
1572
- additionalProperties: false,
1573
- properties: {
1574
- ext: getItemOrArrayOfItemsSchema({
1575
- type: "string",
1576
- minLength: 1
1577
- }),
1578
- description: {
1579
- type: "string",
1580
- minLength: 1
1581
- },
1582
- name: {
1583
- type: "string",
1584
- minLength: 1
1585
- },
1586
- mimeType: {
1587
- type: "string",
1588
- minLength: 1
1589
- },
1590
- icon: {
1591
- type: "string",
1592
- minLength: 1
1593
- },
1594
- role: {
1595
- type: "string",
1596
- minLength: 1
1597
- },
1598
- isPackage: {
1599
- type: "boolean"
1600
- },
1601
- rank: {
1602
- type: "string",
1603
- enum: ["Owner", "Default", "Alternate", "None"]
1604
- }
1605
- }
1606
- },
1607
- minItems: 1
1608
- },
1609
- filesForDistribution: {
1610
- type: "array",
1611
- items: {
1612
- type: "string",
1613
- 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"
1614
1502
  },
1615
- minItems: 1
1616
- },
1617
- icon: getIconSchema(),
1618
- 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: {
1619
1536
  type: "object",
1537
+ required: ["from"],
1620
1538
  additionalProperties: false,
1621
1539
  properties: {
1622
- category: { type: "string", minLength: 1 },
1623
- icon: getIconSchema(),
1624
- noSandbox: { type: "boolean" }
1540
+ from: {
1541
+ type: "string",
1542
+ file: {}
1543
+ },
1544
+ to: {
1545
+ type: "string"
1546
+ }
1625
1547
  }
1626
- },
1627
- id: { type: "string", minLength: 1 },
1628
- includeSubNodeModules: {
1629
- type: "boolean",
1630
- default: false
1631
- },
1632
- mac: {
1548
+ }
1549
+ },
1550
+ extraResources: {
1551
+ type: "array",
1552
+ items: {
1633
1553
  type: "object",
1554
+ required: ["from"],
1634
1555
  additionalProperties: false,
1635
1556
  properties: {
1636
- category: { type: "string", minLength: 1 },
1637
- additionalBinariesToSign: {
1638
- type: "array",
1639
- items: {
1640
- type: "string",
1641
- minLength: 1
1642
- }
1643
- },
1644
- entitlements: {
1557
+ from: {
1645
1558
  type: "string",
1646
1559
  file: {
1647
- from: context.projectRoot,
1648
- extensions: ["plist"],
1649
- mustBeFile: true
1650
- },
1651
- minLength: 1
1652
- },
1653
- entitlementsInherit: {
1654
- type: "string",
1655
- file: {
1656
- from: context.projectRoot,
1657
- extensions: ["plist"],
1658
- mustBeFile: true
1659
- },
1660
- minLength: 1
1661
- },
1662
- extendInfo: {
1663
- type: "object"
1560
+ from: "context.projectRoot"
1561
+ }
1664
1562
  },
1665
- icon: getIconSchema(),
1666
- requirements: {
1667
- type: "string",
1668
- file: {
1669
- from: context.projectRoot,
1670
- extensions: ["txt"],
1671
- mustBeFile: true
1672
- },
1673
- minLength: 1
1563
+ to: {
1564
+ type: "string"
1674
1565
  }
1675
1566
  }
1676
- },
1677
- mas: {
1567
+ }
1568
+ },
1569
+ fileAssociations: {
1570
+ type: "array",
1571
+ items: {
1678
1572
  type: "object",
1573
+ required: ["ext"],
1679
1574
  additionalProperties: false,
1680
1575
  properties: {
1681
- 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: {
1682
1592
  type: "string",
1683
- file: {
1684
- from: context.projectRoot,
1685
- extensions: ["plist"],
1686
- mustBeFile: true
1687
- },
1688
1593
  minLength: 1
1689
1594
  },
1690
- entitlementsInherit: {
1595
+ name: {
1691
1596
  type: "string",
1692
- file: {
1693
- from: context.projectRoot,
1694
- extensions: ["plist"],
1695
- mustBeFile: true
1696
- },
1697
1597
  minLength: 1
1698
1598
  },
1699
- provisioningProfile: {
1599
+ mimeType: {
1700
1600
  type: "string",
1701
- file: {
1702
- from: context.projectRoot,
1703
- extensions: ["provisionprofile"],
1704
- mustBeFile: true
1705
- },
1706
1601
  minLength: 1
1707
1602
  },
1708
- type: {
1603
+ icon: {
1709
1604
  type: "string",
1710
- enum: ["development", "distribution"]
1605
+ minLength: 1
1711
1606
  },
1712
- x64ArchFiles: {
1713
- type: "string"
1714
- }
1715
- }
1716
- },
1717
- dmg: {
1718
- type: "object",
1719
- additionalProperties: false,
1720
- properties: {
1721
- background: {
1607
+ role: {
1722
1608
  type: "string",
1723
- file: {
1724
- from: context.projectRoot,
1725
- extensions: ["tiff"],
1726
- mustBeFile: true
1727
- },
1728
1609
  minLength: 1
1729
1610
  },
1730
- artifactName: { type: "string", minLength: 1 },
1731
- backgroundColor: { type: "string", minLength: 1 },
1732
- iconSize: { type: "number" },
1733
- iconTextSize: { type: "number" },
1734
- title: { type: "string", minLength: 1 },
1735
- contents: {
1736
- type: "array",
1737
- items: {
1738
- type: "object",
1739
- additionalProperties: false,
1740
- properties: {
1741
- x: { type: "number" },
1742
- y: { type: "number" }
1743
- }
1744
- }
1611
+ isPackage: {
1612
+ type: "boolean"
1745
1613
  },
1746
- window: {
1747
- type: "object",
1748
- additionalProperties: false,
1749
- properties: {
1750
- x: { type: "number" },
1751
- y: { type: "number" },
1752
- width: { type: "number" },
1753
- height: { type: "number" }
1754
- }
1614
+ rank: {
1615
+ type: "string",
1616
+ enum: ["Owner", "Default", "Alternate", "None"]
1755
1617
  }
1756
1618
  }
1757
1619
  },
1758
- nodeVersion: {
1759
- type: "string",
1760
- validSemver: {},
1761
- minLength: 1
1762
- },
1763
- npmVersion: {
1764
- type: "string",
1765
- validSemver: {},
1766
- minLength: 1
1767
- },
1768
- pnpmVersion: {
1620
+ minItems: 1
1621
+ },
1622
+ filesForDistribution: {
1623
+ type: "array",
1624
+ items: {
1769
1625
  type: "string",
1770
- validSemver: {},
1771
1626
  minLength: 1
1772
1627
  },
1773
- packageJson: {
1774
- type: "object"
1775
- },
1776
- packageManager: {
1777
- type: "string",
1778
- enum: ["npm", "yarn", "pnpm"]
1779
- },
1780
- rebuildLibrary: {
1781
- type: "string",
1782
- enum: ["app-builder", "@electron/rebuild"]
1628
+ minItems: 1
1629
+ },
1630
+ icon: {
1631
+ type: "string",
1632
+ file: {
1633
+ extensions: ["icns", "png"],
1634
+ mustBeFile: true
1783
1635
  },
1784
- schemaVersion: { type: "number", minimum: 1, maximum: 1 },
1785
- snap: {
1786
- type: "object",
1787
- additionalProperties: false,
1788
- properties: {
1789
- after: {
1790
- type: "array",
1791
- items: {
1792
- type: "string",
1793
- minLength: 1
1794
- }
1795
- },
1796
- appPartStage: {
1797
- type: "array",
1798
- items: {
1799
- type: "string",
1800
- minLength: 1
1801
- }
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
1802
1651
  },
1803
- 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: {
1804
1678
  type: "string",
1805
1679
  minLength: 1
1806
- }),
1807
- autoStart: {
1808
- type: "boolean"
1809
- },
1810
- buildPackages: {
1811
- type: "array",
1812
- items: {
1813
- type: "string",
1814
- minLength: 1
1815
- }
1816
- },
1817
- confinement: {
1818
- type: "string",
1819
- enum: ["classic", "devmode", "strict"]
1680
+ }
1681
+ },
1682
+ entitlements: {
1683
+ type: "string",
1684
+ file: {
1685
+ extensions: ["plist"],
1686
+ mustBeFile: true
1820
1687
  },
1821
- environment: {
1822
- type: "object"
1688
+ minLength: 1
1689
+ },
1690
+ entitlementsInherit: {
1691
+ type: "string",
1692
+ file: {
1693
+ extensions: ["plist"],
1694
+ mustBeFile: true
1823
1695
  },
1824
- grade: {
1825
- type: "string",
1826
- 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
1827
1706
  },
1828
- layout: {
1829
- type: "object"
1707
+ minLength: 3
1708
+ },
1709
+ requirements: {
1710
+ type: "string",
1711
+ file: {
1712
+ extensions: ["txt"],
1713
+ mustBeFile: true
1830
1714
  },
1831
- plugs: {
1832
- type: "array",
1833
- items: {
1834
- anyOf: [
1835
- {
1836
- type: "string",
1837
- minLength: 1
1838
- },
1839
- {
1840
- type: "object"
1841
- }
1842
- ]
1843
- }
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
1844
1728
  },
1845
- stagePackages: {
1846
- type: "array",
1847
- items: {
1848
- type: "string",
1849
- minLength: 1
1850
- }
1729
+ minLength: 1
1730
+ },
1731
+ entitlementsInherit: {
1732
+ type: "string",
1733
+ file: {
1734
+ extensions: ["plist"],
1735
+ mustBeFile: true
1851
1736
  },
1852
- summary: {
1853
- type: "string",
1854
- maxLength: 78
1737
+ minLength: 1
1738
+ },
1739
+ provisioningProfile: {
1740
+ type: "string",
1741
+ file: {
1742
+ extensions: ["provisionprofile"],
1743
+ mustBeFile: true
1855
1744
  },
1856
- useTemplateApp: {
1857
- type: "boolean"
1858
- }
1745
+ minLength: 1
1746
+ },
1747
+ type: {
1748
+ type: "string",
1749
+ enum: ["development", "distribution"]
1750
+ },
1751
+ x64ArchFiles: {
1752
+ type: "string"
1859
1753
  }
1860
- },
1861
- uploadSizeLimit: {
1862
- type: "number"
1863
- },
1864
- windows: {
1865
- type: "object",
1866
- additionalProperties: false,
1867
- properties: {
1868
- icon: getIconSchema(["ico"]),
1869
- 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: {
1870
1789
  type: "object",
1871
1790
  additionalProperties: false,
1872
1791
  properties: {
1873
- checksum: { type: "string" },
1874
- debugLogging: { type: "boolean" },
1875
- url: { type: "string" },
1876
- version: { type: "string" }
1792
+ x: {
1793
+ type: "number"
1794
+ },
1795
+ y: {
1796
+ type: "number"
1797
+ }
1877
1798
  }
1878
- },
1879
- nsisInclude: {
1880
- type: "string",
1881
- file: {
1882
- from: context.projectRoot,
1883
- extensions: ["nsh"],
1884
- 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"
1885
1816
  }
1886
- },
1887
- publisherName: {
1888
- type: "array",
1889
- 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
+ {
1890
1873
  type: "string",
1891
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"
1892
1969
  }
1893
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
+ }
1894
1985
  }
1895
1986
  }
1896
1987
  }
1897
- };
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;
1898
2005
  };
1899
2006
 
1900
2007
  // src/utilities/projectConfig/validateConfig.ts
@@ -2868,12 +2975,6 @@ var LoginHOC = ({ children, isInteractive = true }) => {
2868
2975
  const [isEffectDone, setEffectDone] = (0, import_react10.useState)(false);
2869
2976
  const [error, setError] = (0, import_react10.useState)(null);
2870
2977
  const { isRawModeSupported } = (0, import_ink16.useStdin)();
2871
- const onFailure = (message2, err = {}) => {
2872
- setError({
2873
- ...err,
2874
- message: message2
2875
- });
2876
- };
2877
2978
  (0, import_react10.useEffect)(() => {
2878
2979
  async function isAccessTokenValid() {
2879
2980
  const { accessToken, email, jwtToken } = getAuthConfig();
@@ -2894,12 +2995,17 @@ var LoginHOC = ({ children, isInteractive = true }) => {
2894
2995
  setIsLoggedIn(true);
2895
2996
  }
2896
2997
  } else if (!isRawModeSupported || import_is_ci4.default) {
2897
- onFailure(
2898
- "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
+ )
2899
3002
  );
2900
3003
  }
2901
3004
  } catch (err) {
2902
- 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);
2903
3009
  }
2904
3010
  try {
2905
3011
  if (!userCreds && jwtToken) {
@@ -5314,7 +5420,7 @@ var package_default = {
5314
5420
  access: "public"
5315
5421
  },
5316
5422
  name: "@todesktop/cli",
5317
- version: "1.10.0",
5423
+ version: "1.10.1",
5318
5424
  license: "MIT",
5319
5425
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
5320
5426
  homepage: "https://todesktop.com/cli",
@@ -5341,9 +5447,12 @@ var package_default = {
5341
5447
  release: "npm run build && npx np --tag=latest",
5342
5448
  "release-beta": "npm run build && npx np --any-branch --no-tests --tag=beta",
5343
5449
  test: "ava",
5344
- "test--watch": "npm test -- --watch"
5450
+ "test--watch": "npm test -- --watch",
5451
+ postinstall: "node scripts/postinstall.js"
5345
5452
  },
5346
5453
  files: [
5454
+ "scripts",
5455
+ "schemas",
5347
5456
  "dist",
5348
5457
  "docs",
5349
5458
  ".env",