@teambit/harmony.content.cli-reference 2.0.536 → 2.0.538
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 +11 -2
- package/cli-reference.mdx +8 -7
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +11 -2
- package/dist/cli-reference.mdx.js +17 -2
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1737645747184.js → preview-1737893332947.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -3637,6 +3637,11 @@
|
|
|
3637
3637
|
"name": "diff [component-pattern] [version] [to-version]",
|
|
3638
3638
|
"alias": "",
|
|
3639
3639
|
"options": [
|
|
3640
|
+
[
|
|
3641
|
+
"p",
|
|
3642
|
+
"parent",
|
|
3643
|
+
"compare the specified \"version\" to its immediate parent instead of comparing to the current one"
|
|
3644
|
+
],
|
|
3640
3645
|
[
|
|
3641
3646
|
"v",
|
|
3642
3647
|
"verbose",
|
|
@@ -3659,11 +3664,11 @@
|
|
|
3659
3664
|
},
|
|
3660
3665
|
{
|
|
3661
3666
|
"name": "version",
|
|
3662
|
-
"description": "
|
|
3667
|
+
"description": "the base version to compare from. if omitted, compares the workspace's current files to the component's latest version."
|
|
3663
3668
|
},
|
|
3664
3669
|
{
|
|
3665
3670
|
"name": "to-version",
|
|
3666
|
-
"description": "
|
|
3671
|
+
"description": "the target version to compare against \"version\".\nif both \"version\" and \"to-version\" are provided, compare those two versions directly (ignoring the workspace)."
|
|
3667
3672
|
}
|
|
3668
3673
|
],
|
|
3669
3674
|
"examples": [
|
|
@@ -3686,6 +3691,10 @@
|
|
|
3686
3691
|
{
|
|
3687
3692
|
"cmd": "diff '$codeModified' ",
|
|
3688
3693
|
"description": "show diff only for components with modified files. ignore config changes"
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
"cmd": "diff foo 0.0.2 --parent",
|
|
3697
|
+
"description": "compare \"foo@0.0.2\" to its parent version. showing what changed in 0.0.2"
|
|
3689
3698
|
}
|
|
3690
3699
|
]
|
|
3691
3700
|
},
|
package/cli-reference.mdx
CHANGED
|
@@ -665,13 +665,14 @@ see also "bit deps remove"
|
|
|
665
665
|
| **Arg** | **Description** |
|
|
666
666
|
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
667
667
|
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
668
|
-
| `version` |
|
|
669
|
-
| `to-version` |
|
|
670
|
-
|
|
671
|
-
| **Option** | **Option alias** | **Description**
|
|
672
|
-
| ----------- | :--------------: |
|
|
673
|
-
| `--
|
|
674
|
-
| `--
|
|
668
|
+
| `version` | the base version to compare from. if omitted, compares the workspace's current files to the component's latest version. |
|
|
669
|
+
| `to-version` | the target version to compare against "version". if both "version" and "to-version" are provided, compare those two versions directly (ignoring the workspace). |
|
|
670
|
+
|
|
671
|
+
| **Option** | **Option alias** | **Description** |
|
|
672
|
+
| ----------- | :--------------: | ----------------------------------------------------------------------------------------------- |
|
|
673
|
+
| `--parent` | `-p` | compare the specified "version" to its immediate parent instead of comparing to the current one |
|
|
674
|
+
| `--verbose` | `-v` | show a more verbose output where possible |
|
|
675
|
+
| `--table` | `-t` | show tables instead of plain text for dependencies diff |
|
|
675
676
|
|
|
676
677
|
---
|
|
677
678
|
|
package/dist/cli-reference.json
CHANGED
|
@@ -3637,6 +3637,11 @@
|
|
|
3637
3637
|
"name": "diff [component-pattern] [version] [to-version]",
|
|
3638
3638
|
"alias": "",
|
|
3639
3639
|
"options": [
|
|
3640
|
+
[
|
|
3641
|
+
"p",
|
|
3642
|
+
"parent",
|
|
3643
|
+
"compare the specified \"version\" to its immediate parent instead of comparing to the current one"
|
|
3644
|
+
],
|
|
3640
3645
|
[
|
|
3641
3646
|
"v",
|
|
3642
3647
|
"verbose",
|
|
@@ -3659,11 +3664,11 @@
|
|
|
3659
3664
|
},
|
|
3660
3665
|
{
|
|
3661
3666
|
"name": "version",
|
|
3662
|
-
"description": "
|
|
3667
|
+
"description": "the base version to compare from. if omitted, compares the workspace's current files to the component's latest version."
|
|
3663
3668
|
},
|
|
3664
3669
|
{
|
|
3665
3670
|
"name": "to-version",
|
|
3666
|
-
"description": "
|
|
3671
|
+
"description": "the target version to compare against \"version\".\nif both \"version\" and \"to-version\" are provided, compare those two versions directly (ignoring the workspace)."
|
|
3667
3672
|
}
|
|
3668
3673
|
],
|
|
3669
3674
|
"examples": [
|
|
@@ -3686,6 +3691,10 @@
|
|
|
3686
3691
|
{
|
|
3687
3692
|
"cmd": "diff '$codeModified' ",
|
|
3688
3693
|
"description": "show diff only for components with modified files. ignore config changes"
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
"cmd": "diff foo 0.0.2 --parent",
|
|
3697
|
+
"description": "compare \"foo@0.0.2\" to its parent version. showing what changed in 0.0.2"
|
|
3689
3698
|
}
|
|
3690
3699
|
]
|
|
3691
3700
|
},
|
|
@@ -3242,7 +3242,7 @@ function MDXContent(_ref) {
|
|
|
3242
3242
|
}, "version")), (0, _react2.mdx)("td", {
|
|
3243
3243
|
parentName: "tr",
|
|
3244
3244
|
"align": "center"
|
|
3245
|
-
}, "
|
|
3245
|
+
}, "the base version to compare from. if omitted, compares the workspace's current files to the component's latest version.")), (0, _react2.mdx)("tr", {
|
|
3246
3246
|
parentName: "tbody"
|
|
3247
3247
|
}, (0, _react2.mdx)("td", {
|
|
3248
3248
|
parentName: "tr",
|
|
@@ -3252,7 +3252,7 @@ function MDXContent(_ref) {
|
|
|
3252
3252
|
}, "to-version")), (0, _react2.mdx)("td", {
|
|
3253
3253
|
parentName: "tr",
|
|
3254
3254
|
"align": "center"
|
|
3255
|
-
}, "
|
|
3255
|
+
}, "the target version to compare against \"version\". if both \"version\" and \"to-version\" are provided, compare those two versions directly (ignoring the workspace).")))), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
3256
3256
|
parentName: "table"
|
|
3257
3257
|
}, (0, _react2.mdx)("tr", {
|
|
3258
3258
|
parentName: "thead"
|
|
@@ -3280,6 +3280,21 @@ function MDXContent(_ref) {
|
|
|
3280
3280
|
"align": null
|
|
3281
3281
|
}, (0, _react2.mdx)("inlineCode", {
|
|
3282
3282
|
parentName: "td"
|
|
3283
|
+
}, "--parent")), (0, _react2.mdx)("td", {
|
|
3284
|
+
parentName: "tr",
|
|
3285
|
+
"align": "center"
|
|
3286
|
+
}, (0, _react2.mdx)("inlineCode", {
|
|
3287
|
+
parentName: "td"
|
|
3288
|
+
}, "-p")), (0, _react2.mdx)("td", {
|
|
3289
|
+
parentName: "tr",
|
|
3290
|
+
"align": null
|
|
3291
|
+
}, "compare the specified \"version\" to its immediate parent instead of comparing to the current one")), (0, _react2.mdx)("tr", {
|
|
3292
|
+
parentName: "tbody"
|
|
3293
|
+
}, (0, _react2.mdx)("td", {
|
|
3294
|
+
parentName: "tr",
|
|
3295
|
+
"align": null
|
|
3296
|
+
}, (0, _react2.mdx)("inlineCode", {
|
|
3297
|
+
parentName: "td"
|
|
3283
3298
|
}, "--verbose")), (0, _react2.mdx)("td", {
|
|
3284
3299
|
parentName: "tr",
|
|
3285
3300
|
"align": "center"
|