@teambit/harmony.content.cli-reference 2.0.973 → 2.0.975
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 +42 -20
- package/cli-reference.mdx +16 -0
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +42 -20
- package/dist/cli-reference.mdx.js +29 -1
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1774991821432.js → preview-1775143204644.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -2701,6 +2701,11 @@
|
|
|
2701
2701
|
"",
|
|
2702
2702
|
"force-theirs",
|
|
2703
2703
|
"do not merge, just overwrite with incoming files"
|
|
2704
|
+
],
|
|
2705
|
+
[
|
|
2706
|
+
"",
|
|
2707
|
+
"include-new-from-scope",
|
|
2708
|
+
"relevant for 'bit checkout head'. import components from the defaultScope that don't exist in the workspace"
|
|
2704
2709
|
]
|
|
2705
2710
|
],
|
|
2706
2711
|
"description": "switch between component versions or remove local changes",
|
|
@@ -3520,6 +3525,43 @@
|
|
|
3520
3525
|
"group": "advanced",
|
|
3521
3526
|
"private": true
|
|
3522
3527
|
},
|
|
3528
|
+
{
|
|
3529
|
+
"name": "schema <pattern>",
|
|
3530
|
+
"alias": "",
|
|
3531
|
+
"options": [
|
|
3532
|
+
[
|
|
3533
|
+
"r",
|
|
3534
|
+
"remote",
|
|
3535
|
+
"fetch schema from remote scope (works for components not in workspace)"
|
|
3536
|
+
],
|
|
3537
|
+
[
|
|
3538
|
+
"j",
|
|
3539
|
+
"json",
|
|
3540
|
+
"return the component schema in json format"
|
|
3541
|
+
]
|
|
3542
|
+
],
|
|
3543
|
+
"description": "display component API schema and type definitions",
|
|
3544
|
+
"extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse 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'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
|
|
3545
|
+
"group": "info-analysis",
|
|
3546
|
+
"private": false,
|
|
3547
|
+
"commands": [
|
|
3548
|
+
{
|
|
3549
|
+
"name": "diff <component> <base-version> <compare-version>",
|
|
3550
|
+
"alias": "",
|
|
3551
|
+
"options": [
|
|
3552
|
+
[
|
|
3553
|
+
"j",
|
|
3554
|
+
"json",
|
|
3555
|
+
"return the API diff in json format"
|
|
3556
|
+
]
|
|
3557
|
+
],
|
|
3558
|
+
"description": "show API changes between two versions of a component",
|
|
3559
|
+
"extendedDescription": "compares the public API schema between two versions of a component.\nshows added, removed, and modified exports with semantic impact analysis.\n\nexamples:\n bit schema diff my-component 0.0.1 0.0.2",
|
|
3560
|
+
"group": "info-analysis",
|
|
3561
|
+
"private": false
|
|
3562
|
+
}
|
|
3563
|
+
]
|
|
3564
|
+
},
|
|
3523
3565
|
{
|
|
3524
3566
|
"name": "test [component-pattern]",
|
|
3525
3567
|
"alias": "at",
|
|
@@ -5227,26 +5269,6 @@
|
|
|
5227
5269
|
}
|
|
5228
5270
|
]
|
|
5229
5271
|
},
|
|
5230
|
-
{
|
|
5231
|
-
"name": "schema <pattern>",
|
|
5232
|
-
"alias": "",
|
|
5233
|
-
"options": [
|
|
5234
|
-
[
|
|
5235
|
-
"r",
|
|
5236
|
-
"remote",
|
|
5237
|
-
"fetch schema from remote scope (works for components not in workspace)"
|
|
5238
|
-
],
|
|
5239
|
-
[
|
|
5240
|
-
"j",
|
|
5241
|
-
"json",
|
|
5242
|
-
"return the component schema in json format"
|
|
5243
|
-
]
|
|
5244
|
-
],
|
|
5245
|
-
"description": "display component API schema and type definitions",
|
|
5246
|
-
"extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse 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'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
|
|
5247
|
-
"group": "info-analysis",
|
|
5248
|
-
"private": false
|
|
5249
|
-
},
|
|
5250
5272
|
{
|
|
5251
5273
|
"name": "log <id>",
|
|
5252
5274
|
"alias": "",
|
package/cli-reference.mdx
CHANGED
|
@@ -359,6 +359,7 @@ the `<to>` argument accepts these values:
|
|
|
359
359
|
| `--skip-dependency-installation` | `-x` | do not auto-install dependencies of the imported components |
|
|
360
360
|
| `--force-ours` | | do not merge, preserve local files as is |
|
|
361
361
|
| `--force-theirs` | | do not merge, just overwrite with incoming files |
|
|
362
|
+
| `--include-new-from-scope` | | relevant for 'bit checkout head'. import components from the defaultScope that don't exist in the workspace |
|
|
362
363
|
|
|
363
364
|
---
|
|
364
365
|
|
|
@@ -2262,6 +2263,21 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
|
|
|
2262
2263
|
|
|
2263
2264
|
`bit schema <pattern>`
|
|
2264
2265
|
|
|
2266
|
+
### schema diff
|
|
2267
|
+
|
|
2268
|
+
**Usage**: `schema diff <component> <base-version> <compare-version>`
|
|
2269
|
+
|
|
2270
|
+
**Description**: show API changes between two versions of a component
|
|
2271
|
+
compares the public API schema between two versions of a component.
|
|
2272
|
+
shows added, removed, and modified exports with semantic impact analysis.
|
|
2273
|
+
|
|
2274
|
+
examples:
|
|
2275
|
+
bit schema diff my-component 0.0.1 0.0.2
|
|
2276
|
+
|
|
2277
|
+
| **Option** | **Option alias** | **Description** |
|
|
2278
|
+
| ---------- | :--------------: | ---------------------------------- |
|
|
2279
|
+
| `--json` | `-j` | return the API diff in json format |
|
|
2280
|
+
|
|
2265
2281
|
| **Option** | **Option alias** | **Description** |
|
|
2266
2282
|
| ---------- | :--------------: | ---------------------------------------------------------------------- |
|
|
2267
2283
|
| `--remote` | `-r` | fetch schema from remote scope (works for components not in workspace) |
|
package/dist/cli-reference.json
CHANGED
|
@@ -2701,6 +2701,11 @@
|
|
|
2701
2701
|
"",
|
|
2702
2702
|
"force-theirs",
|
|
2703
2703
|
"do not merge, just overwrite with incoming files"
|
|
2704
|
+
],
|
|
2705
|
+
[
|
|
2706
|
+
"",
|
|
2707
|
+
"include-new-from-scope",
|
|
2708
|
+
"relevant for 'bit checkout head'. import components from the defaultScope that don't exist in the workspace"
|
|
2704
2709
|
]
|
|
2705
2710
|
],
|
|
2706
2711
|
"description": "switch between component versions or remove local changes",
|
|
@@ -3520,6 +3525,43 @@
|
|
|
3520
3525
|
"group": "advanced",
|
|
3521
3526
|
"private": true
|
|
3522
3527
|
},
|
|
3528
|
+
{
|
|
3529
|
+
"name": "schema <pattern>",
|
|
3530
|
+
"alias": "",
|
|
3531
|
+
"options": [
|
|
3532
|
+
[
|
|
3533
|
+
"r",
|
|
3534
|
+
"remote",
|
|
3535
|
+
"fetch schema from remote scope (works for components not in workspace)"
|
|
3536
|
+
],
|
|
3537
|
+
[
|
|
3538
|
+
"j",
|
|
3539
|
+
"json",
|
|
3540
|
+
"return the component schema in json format"
|
|
3541
|
+
]
|
|
3542
|
+
],
|
|
3543
|
+
"description": "display component API schema and type definitions",
|
|
3544
|
+
"extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse 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'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
|
|
3545
|
+
"group": "info-analysis",
|
|
3546
|
+
"private": false,
|
|
3547
|
+
"commands": [
|
|
3548
|
+
{
|
|
3549
|
+
"name": "diff <component> <base-version> <compare-version>",
|
|
3550
|
+
"alias": "",
|
|
3551
|
+
"options": [
|
|
3552
|
+
[
|
|
3553
|
+
"j",
|
|
3554
|
+
"json",
|
|
3555
|
+
"return the API diff in json format"
|
|
3556
|
+
]
|
|
3557
|
+
],
|
|
3558
|
+
"description": "show API changes between two versions of a component",
|
|
3559
|
+
"extendedDescription": "compares the public API schema between two versions of a component.\nshows added, removed, and modified exports with semantic impact analysis.\n\nexamples:\n bit schema diff my-component 0.0.1 0.0.2",
|
|
3560
|
+
"group": "info-analysis",
|
|
3561
|
+
"private": false
|
|
3562
|
+
}
|
|
3563
|
+
]
|
|
3564
|
+
},
|
|
3523
3565
|
{
|
|
3524
3566
|
"name": "test [component-pattern]",
|
|
3525
3567
|
"alias": "at",
|
|
@@ -5227,26 +5269,6 @@
|
|
|
5227
5269
|
}
|
|
5228
5270
|
]
|
|
5229
5271
|
},
|
|
5230
|
-
{
|
|
5231
|
-
"name": "schema <pattern>",
|
|
5232
|
-
"alias": "",
|
|
5233
|
-
"options": [
|
|
5234
|
-
[
|
|
5235
|
-
"r",
|
|
5236
|
-
"remote",
|
|
5237
|
-
"fetch schema from remote scope (works for components not in workspace)"
|
|
5238
|
-
],
|
|
5239
|
-
[
|
|
5240
|
-
"j",
|
|
5241
|
-
"json",
|
|
5242
|
-
"return the component schema in json format"
|
|
5243
|
-
]
|
|
5244
|
-
],
|
|
5245
|
-
"description": "display component API schema and type definitions",
|
|
5246
|
-
"extendedDescription": "extracts and displays the public API structure of components including types, functions, classes, and interfaces.\nshows detailed type information, function signatures, and JSDoc documentation for exported elements.\nuseful for understanding component interfaces and generating documentation.\n\nyou can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"`.\nuse 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'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
|
|
5247
|
-
"group": "info-analysis",
|
|
5248
|
-
"private": false
|
|
5249
|
-
},
|
|
5250
5272
|
{
|
|
5251
5273
|
"name": "log <id>",
|
|
5252
5274
|
"alias": "",
|
|
@@ -797,7 +797,9 @@ function _createMdxContent(props) {
|
|
|
797
797
|
children: "--force-ours"
|
|
798
798
|
}), " | | do not merge, preserve local files as is |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
799
799
|
children: "--force-theirs"
|
|
800
|
-
}), " | | do not merge, just overwrite with incoming files |"
|
|
800
|
+
}), " | | do not merge, just overwrite with incoming files |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
801
|
+
children: "--include-new-from-scope"
|
|
802
|
+
}), " | | relevant for 'bit checkout head'. import components from the defaultScope that don't exist in the workspace |"]
|
|
801
803
|
}), "\n", (0, _jsxRuntime.jsx)(_components.hr, {}), "\n", (0, _jsxRuntime.jsx)(_components.h2, {
|
|
802
804
|
children: "ci"
|
|
803
805
|
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
@@ -4594,6 +4596,32 @@ function _createMdxContent(props) {
|
|
|
4594
4596
|
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
4595
4597
|
children: "bit schema <pattern>"
|
|
4596
4598
|
})
|
|
4599
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h3, {
|
|
4600
|
+
children: "schema diff"
|
|
4601
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
4602
|
+
children: [(0, _jsxRuntime.jsx)(_components.strong, {
|
|
4603
|
+
children: "Usage"
|
|
4604
|
+
}), ": ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
4605
|
+
children: "schema diff <component> <base-version> <compare-version>"
|
|
4606
|
+
})]
|
|
4607
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
4608
|
+
children: [(0, _jsxRuntime.jsx)(_components.strong, {
|
|
4609
|
+
children: "Description"
|
|
4610
|
+
}), ": show API changes between two versions of a component", (0, _jsxRuntime.jsx)(_components.br, {}), "\n", "compares the public API schema between two versions of a component.", (0, _jsxRuntime.jsx)(_components.br, {}), "\n", "shows added, removed, and modified exports with semantic impact analysis."]
|
|
4611
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
4612
|
+
children: ["examples:", (0, _jsxRuntime.jsx)(_components.br, {}), "\n", "bit schema diff my-component 0.0.1 0.0.2"]
|
|
4613
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
4614
|
+
children: ["| ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
4615
|
+
children: "Option"
|
|
4616
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
4617
|
+
children: "Option alias"
|
|
4618
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
4619
|
+
children: "Description"
|
|
4620
|
+
}), " |\n| ---------- | :--------------: | ---------------------------------- |\n| ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
4621
|
+
children: "--json"
|
|
4622
|
+
}), " | ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
4623
|
+
children: "-j"
|
|
4624
|
+
}), " | return the API diff in json format |"]
|
|
4597
4625
|
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
4598
4626
|
children: ["| ", (0, _jsxRuntime.jsx)(_components.strong, {
|
|
4599
4627
|
children: "Option"
|