@teambit/harmony.content.cli-reference 1.95.50 → 1.95.51

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.
@@ -839,53 +839,6 @@
839
839
  "group": "general",
840
840
  "private": false
841
841
  },
842
- {
843
- "name": "dependencies <sub-command>",
844
- "alias": "deps",
845
- "options": [],
846
- "description": "manage dependencies",
847
- "extendedDescription": "",
848
- "group": "info",
849
- "private": false,
850
- "commands": [
851
- {
852
- "name": "get <component-name>",
853
- "alias": "",
854
- "options": [
855
- [
856
- "t",
857
- "tree",
858
- "EXPERIMENTAL. render dependencies as a tree, similar to \"npm ls\""
859
- ]
860
- ],
861
- "description": "show direct and indirect dependencies of the given component",
862
- "extendedDescription": "",
863
- "group": "info",
864
- "private": false,
865
- "arguments": [
866
- {
867
- "name": "component-name",
868
- "description": "component name or component id"
869
- }
870
- ]
871
- },
872
- {
873
- "name": "debug <component-name>",
874
- "alias": "",
875
- "options": [],
876
- "description": "show the immediate dependencies and how their versions were determined",
877
- "extendedDescription": "",
878
- "group": "info",
879
- "private": false,
880
- "arguments": [
881
- {
882
- "name": "component-name",
883
- "description": "component name or component id"
884
- }
885
- ]
886
- }
887
- ]
888
- },
889
842
  {
890
843
  "name": "show <component-name>",
891
844
  "alias": "",
@@ -1452,6 +1405,83 @@
1452
1405
  }
1453
1406
  ]
1454
1407
  },
1408
+ {
1409
+ "name": "dependencies <sub-command>",
1410
+ "alias": "deps",
1411
+ "options": [],
1412
+ "description": "manage dependencies",
1413
+ "extendedDescription": "",
1414
+ "group": "info",
1415
+ "private": false,
1416
+ "commands": [
1417
+ {
1418
+ "name": "get <component-name>",
1419
+ "alias": "",
1420
+ "options": [
1421
+ [
1422
+ "t",
1423
+ "tree",
1424
+ "EXPERIMENTAL. render dependencies as a tree, similar to \"npm ls\""
1425
+ ]
1426
+ ],
1427
+ "description": "show direct and indirect dependencies of the given component",
1428
+ "extendedDescription": "",
1429
+ "group": "info",
1430
+ "private": false,
1431
+ "arguments": [
1432
+ {
1433
+ "name": "component-name",
1434
+ "description": "component name or component id"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ "name": "debug <component-name>",
1440
+ "alias": "",
1441
+ "options": [],
1442
+ "description": "show the immediate dependencies and how their versions were determined",
1443
+ "extendedDescription": "",
1444
+ "group": "info",
1445
+ "private": false,
1446
+ "arguments": [
1447
+ {
1448
+ "name": "component-name",
1449
+ "description": "component name or component id"
1450
+ }
1451
+ ]
1452
+ },
1453
+ {
1454
+ "name": "set <component-pattern> <package>",
1455
+ "alias": "",
1456
+ "options": [
1457
+ [
1458
+ "d",
1459
+ "dev",
1460
+ "add to the devDependencies"
1461
+ ],
1462
+ [
1463
+ "p",
1464
+ "peer",
1465
+ "add to the peerDependencies"
1466
+ ]
1467
+ ],
1468
+ "description": "set a dependency to component(s)",
1469
+ "extendedDescription": "",
1470
+ "group": "info",
1471
+ "private": false,
1472
+ "arguments": [
1473
+ {
1474
+ "name": "component-pattern",
1475
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
1476
+ },
1477
+ {
1478
+ "name": "package",
1479
+ "description": "package name with version, e.g. \"lodash@1.0.0\""
1480
+ }
1481
+ ]
1482
+ }
1483
+ ]
1484
+ },
1455
1485
  {
1456
1486
  "name": "list [remote-scope]",
1457
1487
  "alias": "ls",
@@ -1827,7 +1857,7 @@
1827
1857
  "private": false
1828
1858
  },
1829
1859
  {
1830
- "name": "publish <componentId>",
1860
+ "name": "publish <component-pattern>",
1831
1861
  "alias": "",
1832
1862
  "options": [
1833
1863
  [
@@ -1849,7 +1879,13 @@
1849
1879
  "description": "publish components to npm (npm publish)",
1850
1880
  "extendedDescription": "",
1851
1881
  "group": "collaborate",
1852
- "private": true
1882
+ "private": true,
1883
+ "arguments": [
1884
+ {
1885
+ "name": "component-pattern",
1886
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
1887
+ }
1888
+ ]
1853
1889
  },
1854
1890
  {
1855
1891
  "name": "refactor <sub-command>",
@@ -2545,7 +2581,13 @@
2545
2581
  {
2546
2582
  "name": "set <pattern> <aspect-id> [config]",
2547
2583
  "alias": "",
2548
- "options": [],
2584
+ "options": [
2585
+ [
2586
+ "m",
2587
+ "merge",
2588
+ "merge with an existing config if exits. (by default, it replaces the config)"
2589
+ ]
2590
+ ],
2549
2591
  "description": "set components with an aspect to extend their development tools, metadata and (possibly) artifacts",
2550
2592
  "extendedDescription": "",
2551
2593
  "group": "development",
package/cli-reference.mdx CHANGED
@@ -107,6 +107,10 @@ and a package.tgz file generated by pkg aspect.
107
107
 
108
108
  **Description**: set components with an aspect to extend their development tools, metadata and (possibly) artifacts
109
109
 
110
+ | **Option** | **Option alias** | **Description** |
111
+ | ---------- | :--------------: | ---------------------------------------------------------------------------- |
112
+ | `--merge` | `-m` | merge with an existing config if exits. (by default, it replaces the config) |
113
+
110
114
  ### aspect unset
111
115
 
112
116
  **Usage**: `aspect unset <pattern> <aspect-id>`
@@ -391,6 +395,17 @@ https://bit.dev/docs/config/bit-config
391
395
 
392
396
  **Description**: show the immediate dependencies and how their versions were determined
393
397
 
398
+ ### dependencies set
399
+
400
+ **Usage**: `dependencies set <component-pattern> <package>`
401
+
402
+ **Description**: set a dependency to component(s)
403
+
404
+ | **Option** | **Option alias** | **Description** |
405
+ | ---------- | :--------------: | --------------------------- |
406
+ | `--dev` | `-d` | add to the devDependencies |
407
+ | `--peer` | `-p` | add to the peerDependencies |
408
+
394
409
  ---
395
410
 
396
411
  ## dependents
@@ -839,53 +839,6 @@
839
839
  "group": "general",
840
840
  "private": false
841
841
  },
842
- {
843
- "name": "dependencies <sub-command>",
844
- "alias": "deps",
845
- "options": [],
846
- "description": "manage dependencies",
847
- "extendedDescription": "",
848
- "group": "info",
849
- "private": false,
850
- "commands": [
851
- {
852
- "name": "get <component-name>",
853
- "alias": "",
854
- "options": [
855
- [
856
- "t",
857
- "tree",
858
- "EXPERIMENTAL. render dependencies as a tree, similar to \"npm ls\""
859
- ]
860
- ],
861
- "description": "show direct and indirect dependencies of the given component",
862
- "extendedDescription": "",
863
- "group": "info",
864
- "private": false,
865
- "arguments": [
866
- {
867
- "name": "component-name",
868
- "description": "component name or component id"
869
- }
870
- ]
871
- },
872
- {
873
- "name": "debug <component-name>",
874
- "alias": "",
875
- "options": [],
876
- "description": "show the immediate dependencies and how their versions were determined",
877
- "extendedDescription": "",
878
- "group": "info",
879
- "private": false,
880
- "arguments": [
881
- {
882
- "name": "component-name",
883
- "description": "component name or component id"
884
- }
885
- ]
886
- }
887
- ]
888
- },
889
842
  {
890
843
  "name": "show <component-name>",
891
844
  "alias": "",
@@ -1452,6 +1405,83 @@
1452
1405
  }
1453
1406
  ]
1454
1407
  },
1408
+ {
1409
+ "name": "dependencies <sub-command>",
1410
+ "alias": "deps",
1411
+ "options": [],
1412
+ "description": "manage dependencies",
1413
+ "extendedDescription": "",
1414
+ "group": "info",
1415
+ "private": false,
1416
+ "commands": [
1417
+ {
1418
+ "name": "get <component-name>",
1419
+ "alias": "",
1420
+ "options": [
1421
+ [
1422
+ "t",
1423
+ "tree",
1424
+ "EXPERIMENTAL. render dependencies as a tree, similar to \"npm ls\""
1425
+ ]
1426
+ ],
1427
+ "description": "show direct and indirect dependencies of the given component",
1428
+ "extendedDescription": "",
1429
+ "group": "info",
1430
+ "private": false,
1431
+ "arguments": [
1432
+ {
1433
+ "name": "component-name",
1434
+ "description": "component name or component id"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ "name": "debug <component-name>",
1440
+ "alias": "",
1441
+ "options": [],
1442
+ "description": "show the immediate dependencies and how their versions were determined",
1443
+ "extendedDescription": "",
1444
+ "group": "info",
1445
+ "private": false,
1446
+ "arguments": [
1447
+ {
1448
+ "name": "component-name",
1449
+ "description": "component name or component id"
1450
+ }
1451
+ ]
1452
+ },
1453
+ {
1454
+ "name": "set <component-pattern> <package>",
1455
+ "alias": "",
1456
+ "options": [
1457
+ [
1458
+ "d",
1459
+ "dev",
1460
+ "add to the devDependencies"
1461
+ ],
1462
+ [
1463
+ "p",
1464
+ "peer",
1465
+ "add to the peerDependencies"
1466
+ ]
1467
+ ],
1468
+ "description": "set a dependency to component(s)",
1469
+ "extendedDescription": "",
1470
+ "group": "info",
1471
+ "private": false,
1472
+ "arguments": [
1473
+ {
1474
+ "name": "component-pattern",
1475
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
1476
+ },
1477
+ {
1478
+ "name": "package",
1479
+ "description": "package name with version, e.g. \"lodash@1.0.0\""
1480
+ }
1481
+ ]
1482
+ }
1483
+ ]
1484
+ },
1455
1485
  {
1456
1486
  "name": "list [remote-scope]",
1457
1487
  "alias": "ls",
@@ -1827,7 +1857,7 @@
1827
1857
  "private": false
1828
1858
  },
1829
1859
  {
1830
- "name": "publish <componentId>",
1860
+ "name": "publish <component-pattern>",
1831
1861
  "alias": "",
1832
1862
  "options": [
1833
1863
  [
@@ -1849,7 +1879,13 @@
1849
1879
  "description": "publish components to npm (npm publish)",
1850
1880
  "extendedDescription": "",
1851
1881
  "group": "collaborate",
1852
- "private": true
1882
+ "private": true,
1883
+ "arguments": [
1884
+ {
1885
+ "name": "component-pattern",
1886
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
1887
+ }
1888
+ ]
1853
1889
  },
1854
1890
  {
1855
1891
  "name": "refactor <sub-command>",
@@ -2545,7 +2581,13 @@
2545
2581
  {
2546
2582
  "name": "set <pattern> <aspect-id> [config]",
2547
2583
  "alias": "",
2548
- "options": [],
2584
+ "options": [
2585
+ [
2586
+ "m",
2587
+ "merge",
2588
+ "merge with an existing config if exits. (by default, it replaces the config)"
2589
+ ]
2590
+ ],
2549
2591
  "description": "set components with an aspect to extend their development tools, metadata and (possibly) artifacts",
2550
2592
  "extendedDescription": "",
2551
2593
  "group": "development",
@@ -482,7 +482,43 @@ function MDXContent(_ref) {
482
482
  parentName: "p"
483
483
  }, "aspect set <pattern> <aspect-id> [config]")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
484
484
  parentName: "p"
485
- }, "Description"), ": set components with an aspect to extend their development tools, metadata and (possibly) artifacts"), (0, _react2.mdx)("h3", null, "aspect unset"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
485
+ }, "Description"), ": set components with an aspect to extend their development tools, metadata and (possibly) artifacts"), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
486
+ parentName: "table"
487
+ }, (0, _react2.mdx)("tr", {
488
+ parentName: "thead"
489
+ }, (0, _react2.mdx)("th", {
490
+ parentName: "tr",
491
+ "align": null
492
+ }, (0, _react2.mdx)("strong", {
493
+ parentName: "th"
494
+ }, "Option")), (0, _react2.mdx)("th", {
495
+ parentName: "tr",
496
+ "align": "center"
497
+ }, (0, _react2.mdx)("strong", {
498
+ parentName: "th"
499
+ }, "Option alias")), (0, _react2.mdx)("th", {
500
+ parentName: "tr",
501
+ "align": null
502
+ }, (0, _react2.mdx)("strong", {
503
+ parentName: "th"
504
+ }, "Description")))), (0, _react2.mdx)("tbody", {
505
+ parentName: "table"
506
+ }, (0, _react2.mdx)("tr", {
507
+ parentName: "tbody"
508
+ }, (0, _react2.mdx)("td", {
509
+ parentName: "tr",
510
+ "align": null
511
+ }, (0, _react2.mdx)("inlineCode", {
512
+ parentName: "td"
513
+ }, "--merge")), (0, _react2.mdx)("td", {
514
+ parentName: "tr",
515
+ "align": "center"
516
+ }, (0, _react2.mdx)("inlineCode", {
517
+ parentName: "td"
518
+ }, "-m")), (0, _react2.mdx)("td", {
519
+ parentName: "tr",
520
+ "align": null
521
+ }, "merge with an existing config if exits. (by default, it replaces the config)")))), (0, _react2.mdx)("h3", null, "aspect unset"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
486
522
  parentName: "p"
487
523
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
488
524
  parentName: "p"
@@ -1641,7 +1677,64 @@ function MDXContent(_ref) {
1641
1677
  parentName: "p"
1642
1678
  }, "dependencies debug <component-name>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1643
1679
  parentName: "p"
1644
- }, "Description"), ": show the immediate dependencies and how their versions were determined"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "dependents"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1680
+ }, "Description"), ": show the immediate dependencies and how their versions were determined"), (0, _react2.mdx)("h3", null, "dependencies set"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1681
+ parentName: "p"
1682
+ }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
1683
+ parentName: "p"
1684
+ }, "dependencies set <component-pattern> <package>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1685
+ parentName: "p"
1686
+ }, "Description"), ": set a dependency to component(s)"), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
1687
+ parentName: "table"
1688
+ }, (0, _react2.mdx)("tr", {
1689
+ parentName: "thead"
1690
+ }, (0, _react2.mdx)("th", {
1691
+ parentName: "tr",
1692
+ "align": null
1693
+ }, (0, _react2.mdx)("strong", {
1694
+ parentName: "th"
1695
+ }, "Option")), (0, _react2.mdx)("th", {
1696
+ parentName: "tr",
1697
+ "align": "center"
1698
+ }, (0, _react2.mdx)("strong", {
1699
+ parentName: "th"
1700
+ }, "Option alias")), (0, _react2.mdx)("th", {
1701
+ parentName: "tr",
1702
+ "align": null
1703
+ }, (0, _react2.mdx)("strong", {
1704
+ parentName: "th"
1705
+ }, "Description")))), (0, _react2.mdx)("tbody", {
1706
+ parentName: "table"
1707
+ }, (0, _react2.mdx)("tr", {
1708
+ parentName: "tbody"
1709
+ }, (0, _react2.mdx)("td", {
1710
+ parentName: "tr",
1711
+ "align": null
1712
+ }, (0, _react2.mdx)("inlineCode", {
1713
+ parentName: "td"
1714
+ }, "--dev")), (0, _react2.mdx)("td", {
1715
+ parentName: "tr",
1716
+ "align": "center"
1717
+ }, (0, _react2.mdx)("inlineCode", {
1718
+ parentName: "td"
1719
+ }, "-d")), (0, _react2.mdx)("td", {
1720
+ parentName: "tr",
1721
+ "align": null
1722
+ }, "add to the devDependencies")), (0, _react2.mdx)("tr", {
1723
+ parentName: "tbody"
1724
+ }, (0, _react2.mdx)("td", {
1725
+ parentName: "tr",
1726
+ "align": null
1727
+ }, (0, _react2.mdx)("inlineCode", {
1728
+ parentName: "td"
1729
+ }, "--peer")), (0, _react2.mdx)("td", {
1730
+ parentName: "tr",
1731
+ "align": "center"
1732
+ }, (0, _react2.mdx)("inlineCode", {
1733
+ parentName: "td"
1734
+ }, "-p")), (0, _react2.mdx)("td", {
1735
+ parentName: "tr",
1736
+ "align": null
1737
+ }, "add to the peerDependencies")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "dependents"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1645
1738
  parentName: "p"
1646
1739
  }, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
1647
1740
  parentName: "p"