@teambit/harmony.content.cli-reference 2.0.444 → 2.0.446
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/cli-reference.docs.mdx +1 -1
- package/cli-reference.json +525 -525
- package/cli-reference.mdx +18 -18
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +525 -525
- package/dist/cli-reference.mdx.js +73 -73
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1729653578123.js → preview-1729708420242.js} +2 -2
- package/package.json +2 -2
package/dist/cli-reference.json
CHANGED
|
@@ -658,6 +658,38 @@
|
|
|
658
658
|
}
|
|
659
659
|
]
|
|
660
660
|
},
|
|
661
|
+
{
|
|
662
|
+
"name": "fork <original-scope> [new-scope] [pattern]",
|
|
663
|
+
"options": [
|
|
664
|
+
[
|
|
665
|
+
"",
|
|
666
|
+
"ast",
|
|
667
|
+
"use ast to transform files instead of regex"
|
|
668
|
+
],
|
|
669
|
+
[
|
|
670
|
+
"x",
|
|
671
|
+
"skip-dependency-installation",
|
|
672
|
+
"do not install packages of the imported components"
|
|
673
|
+
]
|
|
674
|
+
],
|
|
675
|
+
"description": "fork all components of the original-scope and refactor the source-code to use the new scope name",
|
|
676
|
+
"extendedDescription": "optionally, provide [pattern] to limit the fork to specific components",
|
|
677
|
+
"group": "development",
|
|
678
|
+
"arguments": [
|
|
679
|
+
{
|
|
680
|
+
"name": "original-scope",
|
|
681
|
+
"description": "the original scope to fork"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "new-scope",
|
|
685
|
+
"description": "the new scope to fork to, default to the default-scope of the workspace"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "pattern",
|
|
689
|
+
"description": "component name, component id, or component pattern. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
690
|
+
}
|
|
691
|
+
]
|
|
692
|
+
},
|
|
661
693
|
{
|
|
662
694
|
"name": "rename <current-scope-name> <new-scope-name>",
|
|
663
695
|
"options": [
|
|
@@ -717,38 +749,6 @@
|
|
|
717
749
|
"description": "a new owner name to replace the current owner name"
|
|
718
750
|
}
|
|
719
751
|
]
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
"name": "fork <original-scope> [new-scope] [pattern]",
|
|
723
|
-
"options": [
|
|
724
|
-
[
|
|
725
|
-
"",
|
|
726
|
-
"ast",
|
|
727
|
-
"use ast to transform files instead of regex"
|
|
728
|
-
],
|
|
729
|
-
[
|
|
730
|
-
"x",
|
|
731
|
-
"skip-dependency-installation",
|
|
732
|
-
"do not install packages of the imported components"
|
|
733
|
-
]
|
|
734
|
-
],
|
|
735
|
-
"description": "fork all components of the original-scope and refactor the source-code to use the new scope name",
|
|
736
|
-
"extendedDescription": "optionally, provide [pattern] to limit the fork to specific components",
|
|
737
|
-
"group": "development",
|
|
738
|
-
"arguments": [
|
|
739
|
-
{
|
|
740
|
-
"name": "original-scope",
|
|
741
|
-
"description": "the original scope to fork"
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"name": "new-scope",
|
|
745
|
-
"description": "the new scope to fork to, default to the default-scope of the workspace"
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
"name": "pattern",
|
|
749
|
-
"description": "component name, component id, or component pattern. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
750
|
-
}
|
|
751
|
-
]
|
|
752
752
|
}
|
|
753
753
|
]
|
|
754
754
|
},
|
|
@@ -1269,80 +1269,6 @@
|
|
|
1269
1269
|
}
|
|
1270
1270
|
]
|
|
1271
1271
|
},
|
|
1272
|
-
{
|
|
1273
|
-
"name": "watch",
|
|
1274
|
-
"alias": "",
|
|
1275
|
-
"options": [
|
|
1276
|
-
[
|
|
1277
|
-
"v",
|
|
1278
|
-
"verbose",
|
|
1279
|
-
"show all watch events and compiler verbose output"
|
|
1280
|
-
],
|
|
1281
|
-
[
|
|
1282
|
-
"",
|
|
1283
|
-
"skip-pre-compilation",
|
|
1284
|
-
"skip compilation step before starting to watch"
|
|
1285
|
-
],
|
|
1286
|
-
[
|
|
1287
|
-
"t",
|
|
1288
|
-
"check-types [string]",
|
|
1289
|
-
"show errors/warnings for types. options are [file, project] to investigate only changed file or entire project. defaults to project"
|
|
1290
|
-
],
|
|
1291
|
-
[
|
|
1292
|
-
"i",
|
|
1293
|
-
"import",
|
|
1294
|
-
"DEPRECATED. it is now the default. helpful when using git. import component objects if .bitmap changed not by bit"
|
|
1295
|
-
],
|
|
1296
|
-
[
|
|
1297
|
-
"",
|
|
1298
|
-
"skip-import",
|
|
1299
|
-
"do not import component objects if .bitmap changed not by bit"
|
|
1300
|
-
]
|
|
1301
|
-
],
|
|
1302
|
-
"description": "automatically recompile modified components (on save)",
|
|
1303
|
-
"extendedDescription": "by default, the watcher doesn't use polling, to keep the CPU idle.\nif this doesn't work well for you, run \"bit config set watch_use_polling true\" to use polling.",
|
|
1304
|
-
"group": "development",
|
|
1305
|
-
"private": false
|
|
1306
|
-
},
|
|
1307
|
-
{
|
|
1308
|
-
"name": "deprecate <component-name>",
|
|
1309
|
-
"alias": "d",
|
|
1310
|
-
"options": [
|
|
1311
|
-
[
|
|
1312
|
-
"",
|
|
1313
|
-
"new-id <string>",
|
|
1314
|
-
"if replaced by another component, enter the new component id. alternatively use \"bit rename --deprecate\" to do this automatically"
|
|
1315
|
-
],
|
|
1316
|
-
[
|
|
1317
|
-
"",
|
|
1318
|
-
"range <string>",
|
|
1319
|
-
"enter a Semver range to deprecate specific versions. see https://www.npmjs.com/package/semver#ranges for the range syntax"
|
|
1320
|
-
]
|
|
1321
|
-
],
|
|
1322
|
-
"description": "deprecate a component",
|
|
1323
|
-
"extendedDescription": "",
|
|
1324
|
-
"group": "collaborate",
|
|
1325
|
-
"private": false,
|
|
1326
|
-
"remoteOp": true,
|
|
1327
|
-
"skipWorkspace": true,
|
|
1328
|
-
"arguments": [
|
|
1329
|
-
{
|
|
1330
|
-
"name": "component-name",
|
|
1331
|
-
"description": "component name or component id"
|
|
1332
|
-
}
|
|
1333
|
-
]
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
"name": "undeprecate <id>",
|
|
1337
|
-
"alias": "",
|
|
1338
|
-
"options": [],
|
|
1339
|
-
"description": "undeprecate a deprecated component (local/remote)",
|
|
1340
|
-
"extendedDescription": "",
|
|
1341
|
-
"group": "collaborate",
|
|
1342
|
-
"private": false,
|
|
1343
|
-
"remoteOp": true,
|
|
1344
|
-
"skipWorkspace": true
|
|
1345
|
-
},
|
|
1346
1272
|
{
|
|
1347
1273
|
"name": "ws-config <sub-command>",
|
|
1348
1274
|
"alias": "workspace-config",
|
|
@@ -1449,6 +1375,45 @@
|
|
|
1449
1375
|
}
|
|
1450
1376
|
]
|
|
1451
1377
|
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "deprecate <component-name>",
|
|
1380
|
+
"alias": "d",
|
|
1381
|
+
"options": [
|
|
1382
|
+
[
|
|
1383
|
+
"",
|
|
1384
|
+
"new-id <string>",
|
|
1385
|
+
"if replaced by another component, enter the new component id. alternatively use \"bit rename --deprecate\" to do this automatically"
|
|
1386
|
+
],
|
|
1387
|
+
[
|
|
1388
|
+
"",
|
|
1389
|
+
"range <string>",
|
|
1390
|
+
"enter a Semver range to deprecate specific versions. see https://www.npmjs.com/package/semver#ranges for the range syntax"
|
|
1391
|
+
]
|
|
1392
|
+
],
|
|
1393
|
+
"description": "deprecate a component",
|
|
1394
|
+
"extendedDescription": "",
|
|
1395
|
+
"group": "collaborate",
|
|
1396
|
+
"private": false,
|
|
1397
|
+
"remoteOp": true,
|
|
1398
|
+
"skipWorkspace": true,
|
|
1399
|
+
"arguments": [
|
|
1400
|
+
{
|
|
1401
|
+
"name": "component-name",
|
|
1402
|
+
"description": "component name or component id"
|
|
1403
|
+
}
|
|
1404
|
+
]
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "undeprecate <id>",
|
|
1408
|
+
"alias": "",
|
|
1409
|
+
"options": [],
|
|
1410
|
+
"description": "undeprecate a deprecated component (local/remote)",
|
|
1411
|
+
"extendedDescription": "",
|
|
1412
|
+
"group": "collaborate",
|
|
1413
|
+
"private": false,
|
|
1414
|
+
"remoteOp": true,
|
|
1415
|
+
"skipWorkspace": true
|
|
1416
|
+
},
|
|
1452
1417
|
{
|
|
1453
1418
|
"name": "add [path...]",
|
|
1454
1419
|
"alias": "a",
|
|
@@ -1652,6 +1617,41 @@
|
|
|
1652
1617
|
}
|
|
1653
1618
|
]
|
|
1654
1619
|
},
|
|
1620
|
+
{
|
|
1621
|
+
"name": "watch",
|
|
1622
|
+
"alias": "",
|
|
1623
|
+
"options": [
|
|
1624
|
+
[
|
|
1625
|
+
"v",
|
|
1626
|
+
"verbose",
|
|
1627
|
+
"show all watch events and compiler verbose output"
|
|
1628
|
+
],
|
|
1629
|
+
[
|
|
1630
|
+
"",
|
|
1631
|
+
"skip-pre-compilation",
|
|
1632
|
+
"skip compilation step before starting to watch"
|
|
1633
|
+
],
|
|
1634
|
+
[
|
|
1635
|
+
"t",
|
|
1636
|
+
"check-types [string]",
|
|
1637
|
+
"show errors/warnings for types. options are [file, project] to investigate only changed file or entire project. defaults to project"
|
|
1638
|
+
],
|
|
1639
|
+
[
|
|
1640
|
+
"i",
|
|
1641
|
+
"import",
|
|
1642
|
+
"DEPRECATED. it is now the default. helpful when using git. import component objects if .bitmap changed not by bit"
|
|
1643
|
+
],
|
|
1644
|
+
[
|
|
1645
|
+
"",
|
|
1646
|
+
"skip-import",
|
|
1647
|
+
"do not import component objects if .bitmap changed not by bit"
|
|
1648
|
+
]
|
|
1649
|
+
],
|
|
1650
|
+
"description": "automatically recompile modified components (on save)",
|
|
1651
|
+
"extendedDescription": "by default, the watcher doesn't use polling, to keep the CPU idle.\nif this doesn't work well for you, run \"bit config set watch_use_polling true\" to use polling.",
|
|
1652
|
+
"group": "development",
|
|
1653
|
+
"private": false
|
|
1654
|
+
},
|
|
1655
1655
|
{
|
|
1656
1656
|
"name": "build [component-pattern]",
|
|
1657
1657
|
"alias": "",
|
|
@@ -1898,26 +1898,392 @@
|
|
|
1898
1898
|
]
|
|
1899
1899
|
},
|
|
1900
1900
|
{
|
|
1901
|
-
"name": "
|
|
1902
|
-
"alias": "
|
|
1903
|
-
"options": [
|
|
1904
|
-
|
|
1901
|
+
"name": "compile [component-names...]",
|
|
1902
|
+
"alias": "",
|
|
1903
|
+
"options": [
|
|
1904
|
+
[
|
|
1905
|
+
"c",
|
|
1906
|
+
"changed",
|
|
1907
|
+
"compile only new and modified components"
|
|
1908
|
+
],
|
|
1909
|
+
[
|
|
1910
|
+
"v",
|
|
1911
|
+
"verbose",
|
|
1912
|
+
"show more data, such as, dist paths"
|
|
1913
|
+
],
|
|
1914
|
+
[
|
|
1915
|
+
"j",
|
|
1916
|
+
"json",
|
|
1917
|
+
"return the compile results in json format"
|
|
1918
|
+
],
|
|
1919
|
+
[
|
|
1920
|
+
"d",
|
|
1921
|
+
"delete-dist-dir",
|
|
1922
|
+
"delete existing dist folder before writing new compiled files"
|
|
1923
|
+
]
|
|
1924
|
+
],
|
|
1925
|
+
"description": "compile components in the workspace",
|
|
1905
1926
|
"extendedDescription": "",
|
|
1906
|
-
"group": "
|
|
1927
|
+
"group": "development",
|
|
1907
1928
|
"private": false,
|
|
1908
|
-
"
|
|
1929
|
+
"arguments": [
|
|
1909
1930
|
{
|
|
1910
|
-
"name": "
|
|
1911
|
-
"
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1931
|
+
"name": "component-names...",
|
|
1932
|
+
"description": "a list of component names or component IDs (defaults to all components)"
|
|
1933
|
+
}
|
|
1934
|
+
]
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
"name": "install [packages...]",
|
|
1938
|
+
"alias": "in",
|
|
1939
|
+
"options": [
|
|
1940
|
+
[
|
|
1941
|
+
"t",
|
|
1942
|
+
"type [lifecycleType]",
|
|
1943
|
+
"\"runtime\" (default) or \"peer\" (dev is not a valid option)"
|
|
1944
|
+
],
|
|
1945
|
+
[
|
|
1946
|
+
"u",
|
|
1947
|
+
"update",
|
|
1948
|
+
"update all dependencies to latest version according to their semver range"
|
|
1949
|
+
],
|
|
1950
|
+
[
|
|
1951
|
+
"",
|
|
1952
|
+
"update-existing",
|
|
1953
|
+
"DEPRECATED (not needed anymore, it is the default now). update existing dependencies version and types"
|
|
1954
|
+
],
|
|
1955
|
+
[
|
|
1956
|
+
"",
|
|
1957
|
+
"save-prefix [savePrefix]",
|
|
1958
|
+
"set the prefix to use when adding dependency to workspace.jsonc"
|
|
1959
|
+
],
|
|
1960
|
+
[
|
|
1961
|
+
"",
|
|
1962
|
+
"skip-dedupe",
|
|
1963
|
+
"do not dedupe dependencies on installation"
|
|
1964
|
+
],
|
|
1965
|
+
[
|
|
1966
|
+
"",
|
|
1967
|
+
"skip-import",
|
|
1968
|
+
"do not import bit objects post installation"
|
|
1969
|
+
],
|
|
1970
|
+
[
|
|
1971
|
+
"",
|
|
1972
|
+
"skip-compile",
|
|
1973
|
+
"do not compile components"
|
|
1974
|
+
],
|
|
1975
|
+
[
|
|
1976
|
+
"",
|
|
1977
|
+
"skip-write-config-files",
|
|
1978
|
+
"do not write config files (such as eslint, tsconfig, prettier, etc...)"
|
|
1979
|
+
],
|
|
1980
|
+
[
|
|
1981
|
+
"a",
|
|
1982
|
+
"add-missing-deps",
|
|
1983
|
+
"install all missing dependencies"
|
|
1984
|
+
],
|
|
1985
|
+
[
|
|
1986
|
+
"",
|
|
1987
|
+
"add-missing-peers",
|
|
1988
|
+
"install all missing peer dependencies"
|
|
1989
|
+
],
|
|
1990
|
+
[
|
|
1991
|
+
"",
|
|
1992
|
+
"recurring-install",
|
|
1993
|
+
"automatically run install again if there are non loaded old envs in your workspace"
|
|
1994
|
+
],
|
|
1995
|
+
[
|
|
1996
|
+
"",
|
|
1997
|
+
"no-optional [noOptional]",
|
|
1998
|
+
"do not install optional dependencies (works with pnpm only)"
|
|
1999
|
+
],
|
|
2000
|
+
[
|
|
2001
|
+
"",
|
|
2002
|
+
"lockfile-only",
|
|
2003
|
+
"dependencies are not written to node_modules. Only the lockfile is updated"
|
|
2004
|
+
]
|
|
2005
|
+
],
|
|
2006
|
+
"description": "installs workspace dependencies",
|
|
2007
|
+
"extendedDescription": "when no package is specified, all workspace dependencies are installed and all workspace components are imported.",
|
|
2008
|
+
"group": "development",
|
|
2009
|
+
"private": false,
|
|
2010
|
+
"arguments": [
|
|
2011
|
+
{
|
|
2012
|
+
"name": "packages...",
|
|
2013
|
+
"description": "a list of packages to install (separated by spaces)"
|
|
2014
|
+
}
|
|
2015
|
+
]
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "uninstall [packages...]",
|
|
2019
|
+
"alias": "un",
|
|
2020
|
+
"options": [],
|
|
2021
|
+
"description": "uninstall dependencies",
|
|
2022
|
+
"extendedDescription": "",
|
|
2023
|
+
"group": "development",
|
|
2024
|
+
"private": false
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
"name": "update [package-patterns...]",
|
|
2028
|
+
"alias": "up",
|
|
2029
|
+
"options": [
|
|
2030
|
+
[
|
|
2031
|
+
"y",
|
|
2032
|
+
"yes",
|
|
2033
|
+
"automatically update all outdated versions for packages specified in pattern (all if no pattern supplied) - use carefully as could result in breaking updates for dependencies"
|
|
2034
|
+
],
|
|
2035
|
+
[
|
|
2036
|
+
"",
|
|
2037
|
+
"patch",
|
|
2038
|
+
"update to the latest patch version. Semver rules are ignored"
|
|
2039
|
+
],
|
|
2040
|
+
[
|
|
2041
|
+
"",
|
|
2042
|
+
"minor",
|
|
2043
|
+
"update to the latest minor version. Semver rules are ignored"
|
|
2044
|
+
],
|
|
2045
|
+
[
|
|
2046
|
+
"",
|
|
2047
|
+
"major",
|
|
2048
|
+
"update to the latest major version. Semver rules are ignored"
|
|
2049
|
+
],
|
|
2050
|
+
[
|
|
2051
|
+
"",
|
|
2052
|
+
"semver",
|
|
2053
|
+
"update to the newest version respecting semver"
|
|
2054
|
+
]
|
|
2055
|
+
],
|
|
2056
|
+
"description": "update dependencies. By default, dependencies are updated to the highest semver compatible versions.",
|
|
2057
|
+
"extendedDescription": "",
|
|
2058
|
+
"group": "development",
|
|
2059
|
+
"private": false,
|
|
2060
|
+
"arguments": [
|
|
2061
|
+
{
|
|
2062
|
+
"name": "package-patterns...",
|
|
2063
|
+
"description": "a string list of package names, or patterns (separated by spaces or commas), e.g. \"@teambit/**,@my-org/ui.**\". The patterns should be in glob format. By default, all packages are selected."
|
|
2064
|
+
}
|
|
2065
|
+
]
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "link [component-names...]",
|
|
2069
|
+
"alias": "",
|
|
2070
|
+
"options": [
|
|
2071
|
+
[
|
|
2072
|
+
"j",
|
|
2073
|
+
"json",
|
|
2074
|
+
"return the output as JSON"
|
|
2075
|
+
],
|
|
2076
|
+
[
|
|
2077
|
+
"",
|
|
2078
|
+
"verbose",
|
|
2079
|
+
"verbose output"
|
|
2080
|
+
],
|
|
2081
|
+
[
|
|
2082
|
+
"r",
|
|
2083
|
+
"rewire",
|
|
2084
|
+
"Replace relative paths with module paths in code (e.g. \"../foo\" => \"@bit/foo\")"
|
|
2085
|
+
],
|
|
2086
|
+
[
|
|
2087
|
+
"",
|
|
2088
|
+
"target <dir>",
|
|
2089
|
+
"link to an external directory (similar to npm-link) so other projects could use these components"
|
|
2090
|
+
],
|
|
2091
|
+
[
|
|
2092
|
+
"",
|
|
2093
|
+
"skip-fetching-objects",
|
|
2094
|
+
"skip fetch missing objects from remotes before linking"
|
|
2095
|
+
],
|
|
2096
|
+
[
|
|
2097
|
+
"",
|
|
2098
|
+
"peers",
|
|
2099
|
+
"link peer dependencies of the components too"
|
|
2100
|
+
]
|
|
2101
|
+
],
|
|
2102
|
+
"description": "create links in the node_modules directory, to core aspects and to components in the workspace",
|
|
2103
|
+
"extendedDescription": "",
|
|
2104
|
+
"group": "development",
|
|
2105
|
+
"private": false,
|
|
2106
|
+
"arguments": [
|
|
2107
|
+
{
|
|
2108
|
+
"name": "component-names...",
|
|
2109
|
+
"description": "names or IDs of the components to link"
|
|
2110
|
+
}
|
|
2111
|
+
]
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"name": "pack <componentId> [scopePath]",
|
|
2115
|
+
"alias": "",
|
|
2116
|
+
"options": [
|
|
2117
|
+
[
|
|
2118
|
+
"d",
|
|
2119
|
+
"out-dir <out-dir>",
|
|
2120
|
+
"directory to put the result tar file"
|
|
2121
|
+
],
|
|
2122
|
+
[
|
|
2123
|
+
"o",
|
|
2124
|
+
"override",
|
|
2125
|
+
"override existing pack file"
|
|
2126
|
+
],
|
|
2127
|
+
[
|
|
2128
|
+
"k",
|
|
2129
|
+
"keep",
|
|
2130
|
+
"should keep isolated environment [default = false]"
|
|
2131
|
+
],
|
|
2132
|
+
[
|
|
2133
|
+
"p",
|
|
2134
|
+
"prefix",
|
|
2135
|
+
"keep custom (binding) prefix"
|
|
2136
|
+
],
|
|
2137
|
+
[
|
|
2138
|
+
"j",
|
|
2139
|
+
"json",
|
|
2140
|
+
"return the output as JSON"
|
|
2141
|
+
]
|
|
2142
|
+
],
|
|
2143
|
+
"description": "create tar for npm publish",
|
|
2144
|
+
"extendedDescription": "",
|
|
2145
|
+
"group": "collaborate",
|
|
2146
|
+
"private": true
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"name": "publish <component-pattern>",
|
|
2150
|
+
"alias": "",
|
|
2151
|
+
"options": [
|
|
2152
|
+
[
|
|
2153
|
+
"d",
|
|
2154
|
+
"dry-run",
|
|
2155
|
+
"npm publish --dry-run"
|
|
2156
|
+
],
|
|
2157
|
+
[
|
|
2158
|
+
"",
|
|
2159
|
+
"allow-staged",
|
|
2160
|
+
"allow publishing components that were not exported yet (not recommended)"
|
|
2161
|
+
],
|
|
2162
|
+
[
|
|
2163
|
+
"j",
|
|
2164
|
+
"json",
|
|
2165
|
+
"return the output as JSON"
|
|
2166
|
+
]
|
|
2167
|
+
],
|
|
2168
|
+
"description": "publish components to npm (npm publish)",
|
|
2169
|
+
"extendedDescription": "",
|
|
2170
|
+
"group": "collaborate",
|
|
2171
|
+
"private": true,
|
|
2172
|
+
"arguments": [
|
|
2173
|
+
{
|
|
2174
|
+
"name": "component-pattern",
|
|
2175
|
+
"description": "component name, component id, or component pattern. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
2176
|
+
}
|
|
2177
|
+
]
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"name": "refactor <sub-command>",
|
|
2181
|
+
"alias": "",
|
|
2182
|
+
"options": [],
|
|
2183
|
+
"description": "source code refactoring / codemod",
|
|
2184
|
+
"extendedDescription": "",
|
|
2185
|
+
"group": "development",
|
|
2186
|
+
"private": false,
|
|
2187
|
+
"commands": [
|
|
2188
|
+
{
|
|
2189
|
+
"name": "dependency-name <old-id> <new-id>",
|
|
2190
|
+
"alias": "",
|
|
2191
|
+
"options": [],
|
|
2192
|
+
"description": "replace the dependency's old package-name with a new one in the code",
|
|
2193
|
+
"extendedDescription": "the `<old-id>` and `<new-id>` arguments can be either a component-id or a package-name.",
|
|
2194
|
+
"group": "development",
|
|
2195
|
+
"private": false
|
|
2196
|
+
}
|
|
2197
|
+
]
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"name": "fork <source-component-id> [target-component-name]",
|
|
2201
|
+
"alias": "",
|
|
2202
|
+
"options": [
|
|
2203
|
+
[
|
|
2204
|
+
"s",
|
|
2205
|
+
"scope <string>",
|
|
2206
|
+
"default scope for the new component"
|
|
2207
|
+
],
|
|
2208
|
+
[
|
|
2209
|
+
"p",
|
|
2210
|
+
"path <string>",
|
|
2211
|
+
"relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`"
|
|
2212
|
+
],
|
|
2213
|
+
[
|
|
2214
|
+
"r",
|
|
2215
|
+
"refactor",
|
|
2216
|
+
"update the import/require statements in all dependent components (in the same workspace)"
|
|
2217
|
+
],
|
|
2218
|
+
[
|
|
2219
|
+
"x",
|
|
2220
|
+
"skip-dependency-installation",
|
|
2221
|
+
"do not install packages of the imported components"
|
|
2222
|
+
],
|
|
2223
|
+
[
|
|
2224
|
+
"e",
|
|
2225
|
+
"env <string>",
|
|
2226
|
+
"set the environment for the new component"
|
|
2227
|
+
],
|
|
2228
|
+
[
|
|
2229
|
+
"",
|
|
2230
|
+
"skip-config",
|
|
2231
|
+
"do not copy the config (aspects-config, env, etc) to the new component. helpful when it fails during aspect loading"
|
|
2232
|
+
],
|
|
2233
|
+
[
|
|
2234
|
+
"",
|
|
2235
|
+
"preserve",
|
|
2236
|
+
"avoid refactoring file and variable/class names according to the new component name"
|
|
2237
|
+
],
|
|
2238
|
+
[
|
|
2239
|
+
"",
|
|
2240
|
+
"no-link",
|
|
2241
|
+
"avoid saving a reference to the original component"
|
|
2242
|
+
],
|
|
2243
|
+
[
|
|
2244
|
+
"",
|
|
2245
|
+
"ast",
|
|
2246
|
+
"use ast to transform files instead of regex"
|
|
2247
|
+
]
|
|
2248
|
+
],
|
|
2249
|
+
"description": "create a new component forked from an existing one (copies source files and configs)",
|
|
2250
|
+
"extendedDescription": "",
|
|
2251
|
+
"group": "collaborate",
|
|
2252
|
+
"private": false,
|
|
2253
|
+
"remoteOp": true,
|
|
2254
|
+
"skipWorkspace": true,
|
|
2255
|
+
"arguments": [
|
|
2256
|
+
{
|
|
2257
|
+
"name": "source-component-id",
|
|
2258
|
+
"description": "the component id of the source component"
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
"name": "target-component-name",
|
|
2262
|
+
"description": "the name for the new component (component name without scope, e.g. name/spaces/my-button). to set a different scope, use the '--scope' flag"
|
|
2263
|
+
}
|
|
2264
|
+
]
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"name": "deps <sub-command>",
|
|
2268
|
+
"alias": "dependencies",
|
|
2269
|
+
"options": [],
|
|
2270
|
+
"description": "manage dependencies",
|
|
2271
|
+
"extendedDescription": "",
|
|
2272
|
+
"group": "info",
|
|
2273
|
+
"private": false,
|
|
2274
|
+
"commands": [
|
|
2275
|
+
{
|
|
2276
|
+
"name": "get <component-name>",
|
|
2277
|
+
"alias": "",
|
|
2278
|
+
"options": [
|
|
2279
|
+
[
|
|
2280
|
+
"",
|
|
2281
|
+
"scope",
|
|
2282
|
+
"get the data from the scope instead of the workspace"
|
|
2283
|
+
],
|
|
2284
|
+
[
|
|
2285
|
+
"t",
|
|
2286
|
+
"tree",
|
|
1921
2287
|
"render dependencies as a tree, similar to \"npm ls\""
|
|
1922
2288
|
]
|
|
1923
2289
|
],
|
|
@@ -2160,286 +2526,73 @@
|
|
|
2160
2526
|
"private": false,
|
|
2161
2527
|
"arguments": [
|
|
2162
2528
|
{
|
|
2163
|
-
"name": "component-id",
|
|
2164
|
-
"description": "the component to unset as always peer"
|
|
2165
|
-
}
|
|
2166
|
-
]
|
|
2167
|
-
},
|
|
2168
|
-
{
|
|
2169
|
-
"name": "dependents <component-name>",
|
|
2170
|
-
"alias": "",
|
|
2171
|
-
"options": [
|
|
2172
|
-
[
|
|
2173
|
-
"j",
|
|
2174
|
-
"json",
|
|
2175
|
-
"return the dependents in JSON format"
|
|
2176
|
-
]
|
|
2177
|
-
],
|
|
2178
|
-
"description": "show dependents of the given component",
|
|
2179
|
-
"extendedDescription": "",
|
|
2180
|
-
"group": "info",
|
|
2181
|
-
"private": false,
|
|
2182
|
-
"arguments": [
|
|
2183
|
-
{
|
|
2184
|
-
"name": "component-name",
|
|
2185
|
-
"description": "component name or component id"
|
|
2186
|
-
}
|
|
2187
|
-
]
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
"name": "list [remote-scope]",
|
|
2191
|
-
"alias": "ls",
|
|
2192
|
-
"options": [
|
|
2193
|
-
[
|
|
2194
|
-
"i",
|
|
2195
|
-
"ids",
|
|
2196
|
-
"show only component ids, unformatted"
|
|
2197
|
-
],
|
|
2198
|
-
[
|
|
2199
|
-
"s",
|
|
2200
|
-
"scope",
|
|
2201
|
-
"show only components stored in the local scope, including indirect dependencies"
|
|
2202
|
-
],
|
|
2203
|
-
[
|
|
2204
|
-
"o",
|
|
2205
|
-
"outdated",
|
|
2206
|
-
"highlight outdated components, in comparison with their latest remote version (if one exists)"
|
|
2207
|
-
],
|
|
2208
|
-
[
|
|
2209
|
-
"d",
|
|
2210
|
-
"include-deleted",
|
|
2211
|
-
"EXPERIMENTAL. show also deleted components"
|
|
2212
|
-
],
|
|
2213
|
-
[
|
|
2214
|
-
"j",
|
|
2215
|
-
"json",
|
|
2216
|
-
"show the output in JSON format"
|
|
2217
|
-
],
|
|
2218
|
-
[
|
|
2219
|
-
"n",
|
|
2220
|
-
"namespace <string>",
|
|
2221
|
-
"show only components in the specified namespace/s e.g. '-n ui' or '*/ui'"
|
|
2222
|
-
]
|
|
2223
|
-
],
|
|
2224
|
-
"description": "list components on a workspace or a remote scope (with flag).",
|
|
2225
|
-
"extendedDescription": "",
|
|
2226
|
-
"group": "discover",
|
|
2227
|
-
"private": false,
|
|
2228
|
-
"remoteOp": true,
|
|
2229
|
-
"skipWorkspace": true
|
|
2230
|
-
},
|
|
2231
|
-
{
|
|
2232
|
-
"name": "compile [component-names...]",
|
|
2233
|
-
"alias": "",
|
|
2234
|
-
"options": [
|
|
2235
|
-
[
|
|
2236
|
-
"c",
|
|
2237
|
-
"changed",
|
|
2238
|
-
"compile only new and modified components"
|
|
2239
|
-
],
|
|
2240
|
-
[
|
|
2241
|
-
"v",
|
|
2242
|
-
"verbose",
|
|
2243
|
-
"show more data, such as, dist paths"
|
|
2244
|
-
],
|
|
2245
|
-
[
|
|
2246
|
-
"j",
|
|
2247
|
-
"json",
|
|
2248
|
-
"return the compile results in json format"
|
|
2249
|
-
],
|
|
2250
|
-
[
|
|
2251
|
-
"d",
|
|
2252
|
-
"delete-dist-dir",
|
|
2253
|
-
"delete existing dist folder before writing new compiled files"
|
|
2254
|
-
]
|
|
2255
|
-
],
|
|
2256
|
-
"description": "compile components in the workspace",
|
|
2257
|
-
"extendedDescription": "",
|
|
2258
|
-
"group": "development",
|
|
2259
|
-
"private": false,
|
|
2260
|
-
"arguments": [
|
|
2261
|
-
{
|
|
2262
|
-
"name": "component-names...",
|
|
2263
|
-
"description": "a list of component names or component IDs (defaults to all components)"
|
|
2264
|
-
}
|
|
2265
|
-
]
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
"name": "install [packages...]",
|
|
2269
|
-
"alias": "in",
|
|
2270
|
-
"options": [
|
|
2271
|
-
[
|
|
2272
|
-
"t",
|
|
2273
|
-
"type [lifecycleType]",
|
|
2274
|
-
"\"runtime\" (default) or \"peer\" (dev is not a valid option)"
|
|
2275
|
-
],
|
|
2276
|
-
[
|
|
2277
|
-
"u",
|
|
2278
|
-
"update",
|
|
2279
|
-
"update all dependencies to latest version according to their semver range"
|
|
2280
|
-
],
|
|
2281
|
-
[
|
|
2282
|
-
"",
|
|
2283
|
-
"update-existing",
|
|
2284
|
-
"DEPRECATED (not needed anymore, it is the default now). update existing dependencies version and types"
|
|
2285
|
-
],
|
|
2286
|
-
[
|
|
2287
|
-
"",
|
|
2288
|
-
"save-prefix [savePrefix]",
|
|
2289
|
-
"set the prefix to use when adding dependency to workspace.jsonc"
|
|
2290
|
-
],
|
|
2291
|
-
[
|
|
2292
|
-
"",
|
|
2293
|
-
"skip-dedupe",
|
|
2294
|
-
"do not dedupe dependencies on installation"
|
|
2295
|
-
],
|
|
2296
|
-
[
|
|
2297
|
-
"",
|
|
2298
|
-
"skip-import",
|
|
2299
|
-
"do not import bit objects post installation"
|
|
2300
|
-
],
|
|
2301
|
-
[
|
|
2302
|
-
"",
|
|
2303
|
-
"skip-compile",
|
|
2304
|
-
"do not compile components"
|
|
2305
|
-
],
|
|
2306
|
-
[
|
|
2307
|
-
"",
|
|
2308
|
-
"skip-write-config-files",
|
|
2309
|
-
"do not write config files (such as eslint, tsconfig, prettier, etc...)"
|
|
2310
|
-
],
|
|
2311
|
-
[
|
|
2312
|
-
"a",
|
|
2313
|
-
"add-missing-deps",
|
|
2314
|
-
"install all missing dependencies"
|
|
2315
|
-
],
|
|
2316
|
-
[
|
|
2317
|
-
"",
|
|
2318
|
-
"add-missing-peers",
|
|
2319
|
-
"install all missing peer dependencies"
|
|
2320
|
-
],
|
|
2321
|
-
[
|
|
2322
|
-
"",
|
|
2323
|
-
"recurring-install",
|
|
2324
|
-
"automatically run install again if there are non loaded old envs in your workspace"
|
|
2325
|
-
],
|
|
2326
|
-
[
|
|
2327
|
-
"",
|
|
2328
|
-
"no-optional [noOptional]",
|
|
2329
|
-
"do not install optional dependencies (works with pnpm only)"
|
|
2330
|
-
],
|
|
2331
|
-
[
|
|
2332
|
-
"",
|
|
2333
|
-
"lockfile-only",
|
|
2334
|
-
"dependencies are not written to node_modules. Only the lockfile is updated"
|
|
2335
|
-
]
|
|
2336
|
-
],
|
|
2337
|
-
"description": "installs workspace dependencies",
|
|
2338
|
-
"extendedDescription": "when no package is specified, all workspace dependencies are installed and all workspace components are imported.",
|
|
2339
|
-
"group": "development",
|
|
2340
|
-
"private": false,
|
|
2341
|
-
"arguments": [
|
|
2342
|
-
{
|
|
2343
|
-
"name": "packages...",
|
|
2344
|
-
"description": "a list of packages to install (separated by spaces)"
|
|
2529
|
+
"name": "component-id",
|
|
2530
|
+
"description": "the component to unset as always peer"
|
|
2345
2531
|
}
|
|
2346
2532
|
]
|
|
2347
2533
|
},
|
|
2348
2534
|
{
|
|
2349
|
-
"name": "
|
|
2350
|
-
"alias": "
|
|
2351
|
-
"options": [],
|
|
2352
|
-
"description": "uninstall dependencies",
|
|
2353
|
-
"extendedDescription": "",
|
|
2354
|
-
"group": "development",
|
|
2355
|
-
"private": false
|
|
2356
|
-
},
|
|
2357
|
-
{
|
|
2358
|
-
"name": "update [package-patterns...]",
|
|
2359
|
-
"alias": "up",
|
|
2535
|
+
"name": "dependents <component-name>",
|
|
2536
|
+
"alias": "",
|
|
2360
2537
|
"options": [
|
|
2361
2538
|
[
|
|
2362
|
-
"
|
|
2363
|
-
"
|
|
2364
|
-
"
|
|
2365
|
-
],
|
|
2366
|
-
[
|
|
2367
|
-
"",
|
|
2368
|
-
"patch",
|
|
2369
|
-
"update to the latest patch version. Semver rules are ignored"
|
|
2370
|
-
],
|
|
2371
|
-
[
|
|
2372
|
-
"",
|
|
2373
|
-
"minor",
|
|
2374
|
-
"update to the latest minor version. Semver rules are ignored"
|
|
2375
|
-
],
|
|
2376
|
-
[
|
|
2377
|
-
"",
|
|
2378
|
-
"major",
|
|
2379
|
-
"update to the latest major version. Semver rules are ignored"
|
|
2380
|
-
],
|
|
2381
|
-
[
|
|
2382
|
-
"",
|
|
2383
|
-
"semver",
|
|
2384
|
-
"update to the newest version respecting semver"
|
|
2539
|
+
"j",
|
|
2540
|
+
"json",
|
|
2541
|
+
"return the dependents in JSON format"
|
|
2385
2542
|
]
|
|
2386
2543
|
],
|
|
2387
|
-
"description": "
|
|
2544
|
+
"description": "show dependents of the given component",
|
|
2388
2545
|
"extendedDescription": "",
|
|
2389
|
-
"group": "
|
|
2546
|
+
"group": "info",
|
|
2390
2547
|
"private": false,
|
|
2391
2548
|
"arguments": [
|
|
2392
2549
|
{
|
|
2393
|
-
"name": "
|
|
2394
|
-
"description": "
|
|
2550
|
+
"name": "component-name",
|
|
2551
|
+
"description": "component name or component id"
|
|
2395
2552
|
}
|
|
2396
2553
|
]
|
|
2397
2554
|
},
|
|
2398
2555
|
{
|
|
2399
|
-
"name": "
|
|
2400
|
-
"alias": "",
|
|
2556
|
+
"name": "list [remote-scope]",
|
|
2557
|
+
"alias": "ls",
|
|
2401
2558
|
"options": [
|
|
2402
2559
|
[
|
|
2403
|
-
"
|
|
2404
|
-
"
|
|
2405
|
-
"
|
|
2560
|
+
"i",
|
|
2561
|
+
"ids",
|
|
2562
|
+
"show only component ids, unformatted"
|
|
2406
2563
|
],
|
|
2407
2564
|
[
|
|
2408
|
-
"",
|
|
2409
|
-
"
|
|
2410
|
-
"
|
|
2565
|
+
"s",
|
|
2566
|
+
"scope",
|
|
2567
|
+
"show only components stored in the local scope, including indirect dependencies"
|
|
2411
2568
|
],
|
|
2412
2569
|
[
|
|
2413
|
-
"
|
|
2414
|
-
"
|
|
2415
|
-
"
|
|
2570
|
+
"o",
|
|
2571
|
+
"outdated",
|
|
2572
|
+
"highlight outdated components, in comparison with their latest remote version (if one exists)"
|
|
2416
2573
|
],
|
|
2417
2574
|
[
|
|
2418
|
-
"",
|
|
2419
|
-
"
|
|
2420
|
-
"
|
|
2575
|
+
"d",
|
|
2576
|
+
"include-deleted",
|
|
2577
|
+
"EXPERIMENTAL. show also deleted components"
|
|
2421
2578
|
],
|
|
2422
2579
|
[
|
|
2423
|
-
"",
|
|
2424
|
-
"
|
|
2425
|
-
"
|
|
2580
|
+
"j",
|
|
2581
|
+
"json",
|
|
2582
|
+
"show the output in JSON format"
|
|
2426
2583
|
],
|
|
2427
2584
|
[
|
|
2428
|
-
"",
|
|
2429
|
-
"
|
|
2430
|
-
"
|
|
2585
|
+
"n",
|
|
2586
|
+
"namespace <string>",
|
|
2587
|
+
"show only components in the specified namespace/s e.g. '-n ui' or '*/ui'"
|
|
2431
2588
|
]
|
|
2432
2589
|
],
|
|
2433
|
-
"description": "
|
|
2590
|
+
"description": "list components on a workspace or a remote scope (with flag).",
|
|
2434
2591
|
"extendedDescription": "",
|
|
2435
|
-
"group": "
|
|
2592
|
+
"group": "discover",
|
|
2436
2593
|
"private": false,
|
|
2437
|
-
"
|
|
2438
|
-
|
|
2439
|
-
"name": "component-names...",
|
|
2440
|
-
"description": "names or IDs of the components to link"
|
|
2441
|
-
}
|
|
2442
|
-
]
|
|
2594
|
+
"remoteOp": true,
|
|
2595
|
+
"skipWorkspace": true
|
|
2443
2596
|
},
|
|
2444
2597
|
{
|
|
2445
2598
|
"name": "move <current-component-dir> <new-component-dir>",
|
|
@@ -3328,7 +3481,7 @@
|
|
|
3328
3481
|
]
|
|
3329
3482
|
],
|
|
3330
3483
|
"description": "snap components from a bare-scope",
|
|
3331
|
-
"extendedDescription": "this command should be running from a new bare scope, it first imports the components it needs and then processes the snap.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // dependencies include versions. for components use component-id. e.g. [teambit.compilation/compiler@1.0.0, lodash@4.17.21]\n aspects?: Record<string,any> // e.g. { \"teambit.react/react\": {}, \"teambit.envs/envs\": { \"env\": \"teambit.react/react\" } }\n message?: string; // tag-message.\n files?: Array<{path: string, content: string}>; // replace content of specified source-files. the content is base64 encoded.\n isNew?: boolean; // if it's new, it'll be generated from the given files. otherwise, it'll be fetched from the scope and updated.\n mainFile?: string; // relevant when isNew is true. default to \"index.ts\".\n newDependencies?: Array<{ // new dependencies (components and packages) to add.\n id: string; // component-id or package-name. e.g. \"teambit.react/react\" or \"lodash\".\n version?: string; // version of the package. e.g. \"2.0.3\". for packages, it is mandatory.\n isComponent?: boolean; // default true. if false, it's a package dependency\n type?: 'runtime' | 'dev' | 'peer'; // default \"runtime\".\n }>;\n removeDependencies?: string[]; // component-id (for components) or package-name (for packages) to remove from the dependencies.\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"message\": \"first snap\"}]'\n",
|
|
3484
|
+
"extendedDescription": "this command should be running from a new bare scope, it first imports the components it needs and then processes the snap.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // dependencies include versions. for components use component-id. e.g. [teambit.compilation/compiler@1.0.0, lodash@4.17.21]\n aspects?: Record<string,any> // e.g. { \"teambit.react/react\": {}, \"teambit.envs/envs\": { \"env\": \"teambit.react/react\" } }\n message?: string; // tag-message.\n files?: Array<{path: string, content: string}>; // replace content of specified source-files. the content is base64 encoded.\n isNew?: boolean; // if it's new, it'll be generated from the given files. otherwise, it'll be fetched from the scope and updated.\n mainFile?: string; // relevant when isNew is true. default to \"index.ts\".\n newDependencies?: Array<{ // new dependencies (components and packages) to add.\n id: string; // component-id or package-name. e.g. \"teambit.react/react\" or \"lodash\".\n version?: string; // version of the package. e.g. \"2.0.3\". for packages, it is mandatory.\n isComponent?: boolean; // default true. if false, it's a package dependency\n type?: 'runtime' | 'dev' | 'peer'; // default \"runtime\".\n }>;\n removeDependencies?: string[]; // component-id (for components) or package-name (for packages) to remove from the dependencies.\n forkFrom?: string; // origin id to fork from. the componentId is the new id. (no need to populate isNew prop).\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"message\": \"first snap\"}]'\n",
|
|
3332
3485
|
"group": "ungrouped",
|
|
3333
3486
|
"private": true
|
|
3334
3487
|
},
|
|
@@ -4545,92 +4698,6 @@
|
|
|
4545
4698
|
}
|
|
4546
4699
|
]
|
|
4547
4700
|
},
|
|
4548
|
-
{
|
|
4549
|
-
"name": "pack <componentId> [scopePath]",
|
|
4550
|
-
"alias": "",
|
|
4551
|
-
"options": [
|
|
4552
|
-
[
|
|
4553
|
-
"d",
|
|
4554
|
-
"out-dir <out-dir>",
|
|
4555
|
-
"directory to put the result tar file"
|
|
4556
|
-
],
|
|
4557
|
-
[
|
|
4558
|
-
"o",
|
|
4559
|
-
"override",
|
|
4560
|
-
"override existing pack file"
|
|
4561
|
-
],
|
|
4562
|
-
[
|
|
4563
|
-
"k",
|
|
4564
|
-
"keep",
|
|
4565
|
-
"should keep isolated environment [default = false]"
|
|
4566
|
-
],
|
|
4567
|
-
[
|
|
4568
|
-
"p",
|
|
4569
|
-
"prefix",
|
|
4570
|
-
"keep custom (binding) prefix"
|
|
4571
|
-
],
|
|
4572
|
-
[
|
|
4573
|
-
"j",
|
|
4574
|
-
"json",
|
|
4575
|
-
"return the output as JSON"
|
|
4576
|
-
]
|
|
4577
|
-
],
|
|
4578
|
-
"description": "create tar for npm publish",
|
|
4579
|
-
"extendedDescription": "",
|
|
4580
|
-
"group": "collaborate",
|
|
4581
|
-
"private": true
|
|
4582
|
-
},
|
|
4583
|
-
{
|
|
4584
|
-
"name": "publish <component-pattern>",
|
|
4585
|
-
"alias": "",
|
|
4586
|
-
"options": [
|
|
4587
|
-
[
|
|
4588
|
-
"d",
|
|
4589
|
-
"dry-run",
|
|
4590
|
-
"npm publish --dry-run"
|
|
4591
|
-
],
|
|
4592
|
-
[
|
|
4593
|
-
"",
|
|
4594
|
-
"allow-staged",
|
|
4595
|
-
"allow publishing components that were not exported yet (not recommended)"
|
|
4596
|
-
],
|
|
4597
|
-
[
|
|
4598
|
-
"j",
|
|
4599
|
-
"json",
|
|
4600
|
-
"return the output as JSON"
|
|
4601
|
-
]
|
|
4602
|
-
],
|
|
4603
|
-
"description": "publish components to npm (npm publish)",
|
|
4604
|
-
"extendedDescription": "",
|
|
4605
|
-
"group": "collaborate",
|
|
4606
|
-
"private": true,
|
|
4607
|
-
"arguments": [
|
|
4608
|
-
{
|
|
4609
|
-
"name": "component-pattern",
|
|
4610
|
-
"description": "component name, component id, or component pattern. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
4611
|
-
}
|
|
4612
|
-
]
|
|
4613
|
-
},
|
|
4614
|
-
{
|
|
4615
|
-
"name": "refactor <sub-command>",
|
|
4616
|
-
"alias": "",
|
|
4617
|
-
"options": [],
|
|
4618
|
-
"description": "source code refactoring / codemod",
|
|
4619
|
-
"extendedDescription": "",
|
|
4620
|
-
"group": "development",
|
|
4621
|
-
"private": false,
|
|
4622
|
-
"commands": [
|
|
4623
|
-
{
|
|
4624
|
-
"name": "dependency-name <old-id> <new-id>",
|
|
4625
|
-
"alias": "",
|
|
4626
|
-
"options": [],
|
|
4627
|
-
"description": "replace the dependency's old package-name with a new one in the code",
|
|
4628
|
-
"extendedDescription": "the `<old-id>` and `<new-id>` arguments can be either a component-id or a package-name.",
|
|
4629
|
-
"group": "development",
|
|
4630
|
-
"private": false
|
|
4631
|
-
}
|
|
4632
|
-
]
|
|
4633
|
-
},
|
|
4634
4701
|
{
|
|
4635
4702
|
"name": "login",
|
|
4636
4703
|
"alias": "",
|
|
@@ -4880,73 +4947,6 @@
|
|
|
4880
4947
|
}
|
|
4881
4948
|
]
|
|
4882
4949
|
},
|
|
4883
|
-
{
|
|
4884
|
-
"name": "fork <source-component-id> [target-component-name]",
|
|
4885
|
-
"alias": "",
|
|
4886
|
-
"options": [
|
|
4887
|
-
[
|
|
4888
|
-
"s",
|
|
4889
|
-
"scope <string>",
|
|
4890
|
-
"default scope for the new component"
|
|
4891
|
-
],
|
|
4892
|
-
[
|
|
4893
|
-
"p",
|
|
4894
|
-
"path <string>",
|
|
4895
|
-
"relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`"
|
|
4896
|
-
],
|
|
4897
|
-
[
|
|
4898
|
-
"r",
|
|
4899
|
-
"refactor",
|
|
4900
|
-
"update the import/require statements in all dependent components (in the same workspace)"
|
|
4901
|
-
],
|
|
4902
|
-
[
|
|
4903
|
-
"x",
|
|
4904
|
-
"skip-dependency-installation",
|
|
4905
|
-
"do not install packages of the imported components"
|
|
4906
|
-
],
|
|
4907
|
-
[
|
|
4908
|
-
"e",
|
|
4909
|
-
"env <string>",
|
|
4910
|
-
"set the environment for the new component"
|
|
4911
|
-
],
|
|
4912
|
-
[
|
|
4913
|
-
"",
|
|
4914
|
-
"skip-config",
|
|
4915
|
-
"do not copy the config (aspects-config, env, etc) to the new component. helpful when it fails during aspect loading"
|
|
4916
|
-
],
|
|
4917
|
-
[
|
|
4918
|
-
"",
|
|
4919
|
-
"preserve",
|
|
4920
|
-
"avoid refactoring file and variable/class names according to the new component name"
|
|
4921
|
-
],
|
|
4922
|
-
[
|
|
4923
|
-
"",
|
|
4924
|
-
"no-link",
|
|
4925
|
-
"avoid saving a reference to the original component"
|
|
4926
|
-
],
|
|
4927
|
-
[
|
|
4928
|
-
"",
|
|
4929
|
-
"ast",
|
|
4930
|
-
"use ast to transform files instead of regex"
|
|
4931
|
-
]
|
|
4932
|
-
],
|
|
4933
|
-
"description": "create a new component forked from an existing one (copies source files and configs)",
|
|
4934
|
-
"extendedDescription": "",
|
|
4935
|
-
"group": "collaborate",
|
|
4936
|
-
"private": false,
|
|
4937
|
-
"remoteOp": true,
|
|
4938
|
-
"skipWorkspace": true,
|
|
4939
|
-
"arguments": [
|
|
4940
|
-
{
|
|
4941
|
-
"name": "source-component-id",
|
|
4942
|
-
"description": "the component id of the source component"
|
|
4943
|
-
},
|
|
4944
|
-
{
|
|
4945
|
-
"name": "target-component-name",
|
|
4946
|
-
"description": "the name for the new component (component name without scope, e.g. name/spaces/my-button). to set a different scope, use the '--scope' flag"
|
|
4947
|
-
}
|
|
4948
|
-
]
|
|
4949
|
-
},
|
|
4950
4950
|
{
|
|
4951
4951
|
"name": "schema <pattern>",
|
|
4952
4952
|
"alias": "",
|