@teambit/pkg.aspect-docs.pkg 0.0.174 → 0.0.175
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/pkg.mdx.js
CHANGED
|
@@ -4,161 +4,277 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = MDXContent;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
/* @jsx mdx */
|
|
16
|
-
|
|
17
|
-
var layoutProps = {};
|
|
18
|
-
var MDXLayout = "wrapper";
|
|
19
|
-
function MDXContent(_ref) {
|
|
20
|
-
var components = _ref.components,
|
|
21
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
return (0, _react2.mdx)(MDXLayout, _extends({}, layoutProps, props, {
|
|
23
|
-
components: components,
|
|
24
|
-
mdxType: "MDXLayout"
|
|
25
|
-
}), (0, _react2.mdx)("p", null, "Bit components can be thought of as a super-set of standard packaged node modules.\nEach component contains a consumable package in addition to its documentation, history and other information that enables it to be independently developed and maintained."), (0, _react2.mdx)("p", null, "The PKG aspect handles the configuration, publishing and packing of component packages.\nIt adds its own build task to the build pipeline, to create component packages and include them in as part of the component artifacts.\nThis automation includes generating the package name and other properties according to the component's details."), (0, _react2.mdx)("h4", null, "Features"), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
|
|
26
|
-
parentName: "ul"
|
|
27
|
-
}, (0, _react2.mdx)("strong", {
|
|
28
|
-
parentName: "li"
|
|
29
|
-
}, "Efficient ", (0, _react2.mdx)("inlineCode", {
|
|
30
|
-
parentName: "strong"
|
|
31
|
-
}, "package.json"), " configuration:"), " Use the PKG's workspace config API to add or override ", (0, _react2.mdx)("inlineCode", {
|
|
32
|
-
parentName: "li"
|
|
33
|
-
}, "package.json"), " properties to a group of components, all at once.\nUse PKG's 'placeholders' to integrate component-specific data into the component's package configurations."), (0, _react2.mdx)("li", {
|
|
34
|
-
parentName: "ul"
|
|
35
|
-
}, (0, _react2.mdx)("strong", {
|
|
36
|
-
parentName: "li"
|
|
37
|
-
}, "An API for programmable ", (0, _react2.mdx)("inlineCode", {
|
|
38
|
-
parentName: "strong"
|
|
39
|
-
}, "package.json"), " configuration:"), " Use PKG's API to provide your extensions with \"packaging capabilities\". Modify the ", (0, _react2.mdx)("inlineCode", {
|
|
40
|
-
parentName: "li"
|
|
41
|
-
}, "package.json"), " to suit your extension's needs, whether it is an environment or any other type of extension."), (0, _react2.mdx)("li", {
|
|
42
|
-
parentName: "ul"
|
|
43
|
-
}, (0, _react2.mdx)("strong", {
|
|
44
|
-
parentName: "li"
|
|
45
|
-
}, "Automated packing and publishing:"), " - PKG is registered to your build pipeline. That means every 'build' will also test 'packing' and every tagging of a new release version will also include 'publishing'. Your components and packages versions are alway in-sync."), (0, _react2.mdx)("li", {
|
|
46
|
-
parentName: "ul"
|
|
47
|
-
}, (0, _react2.mdx)("strong", {
|
|
48
|
-
parentName: "li"
|
|
49
|
-
}, "\"On-demand\" packing and publishing:"), " - PKG offers the ", (0, _react2.mdx)("inlineCode", {
|
|
50
|
-
parentName: "li"
|
|
51
|
-
}, "pack"), " and ", (0, _react2.mdx)("inlineCode", {
|
|
52
|
-
parentName: "li"
|
|
53
|
-
}, "preview"), " CLI commands for a manual and on-demand usage.")), (0, _react2.mdx)("h3", null, "Quickstart & configuration"), (0, _react2.mdx)("blockquote", null, (0, _react2.mdx)("p", {
|
|
54
|
-
parentName: "blockquote"
|
|
55
|
-
}, "This aspect is only configurable using the 'variants' workspace API.")), (0, _react2.mdx)("h4", null, "Package properties"), (0, _react2.mdx)("p", null, "Use the ", (0, _react2.mdx)("inlineCode", {
|
|
56
|
-
parentName: "p"
|
|
57
|
-
}, "packageJson"), " property to add or override the default ", (0, _react2.mdx)("inlineCode", {
|
|
58
|
-
parentName: "p"
|
|
59
|
-
}, "package.json"), " for your component packages."), (0, _react2.mdx)("blockquote", null, (0, _react2.mdx)("p", {
|
|
60
|
-
parentName: "blockquote"
|
|
61
|
-
}, "Warning! Packages with a modified ", (0, _react2.mdx)("inlineCode", {
|
|
62
|
-
parentName: "p"
|
|
63
|
-
}, "name"), " property will not be published to Bit.dev's registry.")), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
64
|
-
parentName: "pre",
|
|
65
|
-
"className": "language-js"
|
|
66
|
-
}, "{\n \"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"name\": \"@{scope}/{name}\",\n \"private\": false,\n \"main\": \"dist/{main}.js\",\n \"custom-prop\": \"value\"\n }\n }\n }\n}\n")), (0, _react2.mdx)("h4", null, "Publish"), (0, _react2.mdx)("blockquote", null, (0, _react2.mdx)("p", {
|
|
67
|
-
parentName: "blockquote"
|
|
68
|
-
}, "If ", (0, _react2.mdx)("inlineCode", {
|
|
69
|
-
parentName: "p"
|
|
70
|
-
}, "publishConfig"), " or ", (0, _react2.mdx)("inlineCode", {
|
|
71
|
-
parentName: "p"
|
|
72
|
-
}, "name"), " are not set, packages will be published to Bit.dev's registry.")), (0, _react2.mdx)("h5", null, "npm arguments"), (0, _react2.mdx)("p", null, "You can specify additional arguments to the ", (0, _react2.mdx)("inlineCode", {
|
|
73
|
-
parentName: "p"
|
|
74
|
-
}, "npm publish"), " command by adding an array of args to ", (0, _react2.mdx)("inlineCode", {
|
|
75
|
-
parentName: "p"
|
|
76
|
-
}, "packageManagerPublishArgs"), "."), (0, _react2.mdx)("p", null, "For example:"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
77
|
-
parentName: "pre",
|
|
78
|
-
"className": "language-js"
|
|
79
|
-
}, "\"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageManagerPublishArgs\": [\"--access public\"]\n }\n}\n")), (0, _react2.mdx)("h4", null, "npmjs Registry"), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
|
|
80
|
-
parentName: "ul"
|
|
81
|
-
}, "Use the ", (0, _react2.mdx)("inlineCode", {
|
|
82
|
-
parentName: "li"
|
|
83
|
-
}, "name"), " property to set the publishing process to your ", (0, _react2.mdx)("a", {
|
|
84
|
-
parentName: "li",
|
|
85
|
-
"href": "https://docs.npmjs.com/cli/v6/using-npm/scope"
|
|
86
|
-
}, "npm scope"), "."), (0, _react2.mdx)("li", {
|
|
87
|
-
parentName: "ul"
|
|
88
|
-
}, "Use the ", (0, _react2.mdx)("inlineCode", {
|
|
89
|
-
parentName: "li"
|
|
90
|
-
}, "private"), " ", (0, _react2.mdx)("em", {
|
|
91
|
-
parentName: "li"
|
|
92
|
-
}, "(boolean)"), " property to set packages to be published with either private or public access.")), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
93
|
-
parentName: "pre",
|
|
94
|
-
"className": "language-js"
|
|
95
|
-
}, "{\n \"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"name\": \"@{scope}/{name}\",\n \"private\": false,\n }\n }\n }\n}\n")), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
|
|
96
|
-
parentName: "ul"
|
|
97
|
-
}, "By default, when specifying ", (0, _react2.mdx)("inlineCode", {
|
|
98
|
-
parentName: "li"
|
|
99
|
-
}, "name"), " or ", (0, _react2.mdx)("inlineCode", {
|
|
100
|
-
parentName: "li"
|
|
101
|
-
}, "publishConfig"), ", it'll publish to NPM. In some rare cases, this is not desired, to cancel it, add the config ", (0, _react2.mdx)("inlineCode", {
|
|
102
|
-
parentName: "li"
|
|
103
|
-
}, "\"avoidPublishToNPM\": true"))), (0, _react2.mdx)("h4", null, "Private registry"), (0, _react2.mdx)("p", null, "Use the ", (0, _react2.mdx)("inlineCode", {
|
|
104
|
-
parentName: "p"
|
|
105
|
-
}, "scope"), " and ", (0, _react2.mdx)("inlineCode", {
|
|
106
|
-
parentName: "p"
|
|
107
|
-
}, "registry"), " properties to configure the publishing process to your own private registry (and scope)."), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
108
|
-
parentName: "pre",
|
|
109
|
-
"className": "language-js"
|
|
110
|
-
}, "\"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"publishConfig\": {\n \"scope\": \"@custom\",\n \"registry\": \"http://localhost:4873\"\n }\n }\n }\n}\n")), (0, _react2.mdx)("blockquote", null, (0, _react2.mdx)("p", {
|
|
111
|
-
parentName: "blockquote"
|
|
112
|
-
}, "Packages with a modified ", (0, _react2.mdx)("inlineCode", {
|
|
113
|
-
parentName: "p"
|
|
114
|
-
}, "publishConfig"), " property will not be published to Bit.dev's registry.")), (0, _react2.mdx)("h4", null, "Placeholders"), (0, _react2.mdx)("p", null, "Placeholders are an easy way to inject component-specific information into the 'pkg' configurations."), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
|
|
115
|
-
parentName: "ul"
|
|
116
|
-
}, (0, _react2.mdx)("inlineCode", {
|
|
117
|
-
parentName: "li"
|
|
118
|
-
}, "{name}"), " - The name of the component."), (0, _react2.mdx)("li", {
|
|
119
|
-
parentName: "ul"
|
|
120
|
-
}, (0, _react2.mdx)("inlineCode", {
|
|
121
|
-
parentName: "li"
|
|
122
|
-
}, "{scope}"), " - The name of the component scope."), (0, _react2.mdx)("li", {
|
|
123
|
-
parentName: "ul"
|
|
124
|
-
}, (0, _react2.mdx)("inlineCode", {
|
|
125
|
-
parentName: "li"
|
|
126
|
-
}, "{main}"), " - the name of the main file (leaving out the extension) - for example ", (0, _react2.mdx)("inlineCode", {
|
|
127
|
-
parentName: "li"
|
|
128
|
-
}, "index.js"), " will be ", (0, _react2.mdx)("inlineCode", {
|
|
129
|
-
parentName: "li"
|
|
130
|
-
}, "index"), ".")), (0, _react2.mdx)("p", null, "For example:"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
131
|
-
parentName: "pre",
|
|
132
|
-
"className": "language-js"
|
|
133
|
-
}, " \"packageJson\": {\n \"main\": \"dist/{main}.js\"\n }\n")), (0, _react2.mdx)("h4", null, ".npmignore"), (0, _react2.mdx)("p", null, "Add records to the .npmignore file before a package is published or pack.\nFor example, if you don't want the source files to be part of the package, you can add them to the .npmignore."), (0, _react2.mdx)("p", null, "The API to add records to this file is exposed in the environment: ", (0, _react2.mdx)("inlineCode", {
|
|
134
|
-
parentName: "p"
|
|
135
|
-
}, "getNpmIgnore()"), "."), (0, _react2.mdx)("p", null, "For example, the following was added to the Aspect env."), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
136
|
-
parentName: "pre",
|
|
137
|
-
"className": "language-js"
|
|
138
|
-
}, "getNpmIgnore() {\n // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.\n return ['/*.ts']\n}\n")), (0, _react2.mdx)("h3", null, "CLI Reference"), (0, _react2.mdx)("h4", null, "Pack"), (0, _react2.mdx)("p", null, "Creates a TAR file (to be published to a node package registry):"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
139
|
-
parentName: "pre",
|
|
140
|
-
"className": "language-shell"
|
|
141
|
-
}, "bit pack <component-id>\n")), (0, _react2.mdx)("p", null, "Overrides the existing TAR file (in the same location):"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
142
|
-
parentName: "pre",
|
|
143
|
-
"className": "language-shell"
|
|
144
|
-
}, "bit pack <component-id> --override\n\nbit pack <component-id> -o\n")), (0, _react2.mdx)("p", null, "Returns the output in a JSON format:"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
145
|
-
parentName: "pre",
|
|
146
|
-
"className": "language-shell"
|
|
147
|
-
}, "bit pack <component-id> --json\n\nbit pack <component-id> -j\n")), (0, _react2.mdx)("h4", null, "Publish"), (0, _react2.mdx)("p", null, "Publishes an exported component:"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
148
|
-
parentName: "pre",
|
|
149
|
-
"className": "language-shell"
|
|
150
|
-
}, "bit publish <componentId>\n")), (0, _react2.mdx)("p", null, "Publishes a staged component that has not yet been exported:"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
151
|
-
parentName: "pre",
|
|
152
|
-
"className": "language-shell"
|
|
153
|
-
}, "bit publish <component-id> --allow-staged\n")), (0, _react2.mdx)("p", null, "Checks if the publishing process will be done successfully (without publishing):"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
154
|
-
parentName: "pre",
|
|
155
|
-
"className": "language-shell"
|
|
156
|
-
}, "bit publish <component-id> --dry-run\n\nbit publish <component-id> -d\n")), (0, _react2.mdx)("p", null, "Returns the output as JSON:"), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
157
|
-
parentName: "pre",
|
|
158
|
-
"className": "language-shell"
|
|
159
|
-
}, "bit publish <component-id> --json\n\nbit publish <component-id> --j\n")));
|
|
160
|
-
}
|
|
161
|
-
;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _react = require("@mdx-js/react");
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
162
15
|
MDXContent.isMDXComponent = true;
|
|
16
|
+
function _createMdxContent(props) {
|
|
17
|
+
var _components = _objectSpread(_objectSpread({
|
|
18
|
+
a: "a",
|
|
19
|
+
blockquote: "blockquote",
|
|
20
|
+
code: "code",
|
|
21
|
+
em: "em",
|
|
22
|
+
h3: "h3",
|
|
23
|
+
h4: "h4",
|
|
24
|
+
h5: "h5",
|
|
25
|
+
li: "li",
|
|
26
|
+
p: "p",
|
|
27
|
+
pre: "pre",
|
|
28
|
+
strong: "strong",
|
|
29
|
+
ul: "ul"
|
|
30
|
+
}, (0, _react.useMDXComponents)()), props.components);
|
|
31
|
+
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
32
|
+
children: [(0, _jsxRuntime.jsx)(_components.p, {
|
|
33
|
+
children: "Bit components can be thought of as a super-set of standard packaged node modules.\nEach component contains a consumable package in addition to its documentation, history and other information that enables it to be independently developed and maintained."
|
|
34
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
35
|
+
children: "The PKG aspect handles the configuration, publishing and packing of component packages.\nIt adds its own build task to the build pipeline, to create component packages and include them in as part of the component artifacts.\nThis automation includes generating the package name and other properties according to the component's details."
|
|
36
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
37
|
+
children: "Features"
|
|
38
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.ul, {
|
|
39
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
40
|
+
children: [(0, _jsxRuntime.jsxs)(_components.strong, {
|
|
41
|
+
children: ["Efficient ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
42
|
+
children: "package.json"
|
|
43
|
+
}), " configuration:"]
|
|
44
|
+
}), " Use the PKG's workspace config API to add or override ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
45
|
+
children: "package.json"
|
|
46
|
+
}), " properties to a group of components, all at once.\nUse PKG's 'placeholders' to integrate component-specific data into the component's package configurations."]
|
|
47
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
48
|
+
children: [(0, _jsxRuntime.jsxs)(_components.strong, {
|
|
49
|
+
children: ["An API for programmable ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
50
|
+
children: "package.json"
|
|
51
|
+
}), " configuration:"]
|
|
52
|
+
}), " Use PKG's API to provide your extensions with \"packaging capabilities\". Modify the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
53
|
+
children: "package.json"
|
|
54
|
+
}), " to suit your extension's needs, whether it is an environment or any other type of extension."]
|
|
55
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
56
|
+
children: [(0, _jsxRuntime.jsx)(_components.strong, {
|
|
57
|
+
children: "Automated packing and publishing:"
|
|
58
|
+
}), " - PKG is registered to your build pipeline. That means every 'build' will also test 'packing' and every tagging of a new release version will also include 'publishing'. Your components and packages versions are alway in-sync."]
|
|
59
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
60
|
+
children: [(0, _jsxRuntime.jsx)(_components.strong, {
|
|
61
|
+
children: "\"On-demand\" packing and publishing:"
|
|
62
|
+
}), " - PKG offers the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
63
|
+
children: "pack"
|
|
64
|
+
}), " and ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
65
|
+
children: "preview"
|
|
66
|
+
}), " CLI commands for a manual and on-demand usage."]
|
|
67
|
+
}), "\n"]
|
|
68
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h3, {
|
|
69
|
+
children: "Quickstart & configuration"
|
|
70
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.blockquote, {
|
|
71
|
+
children: ["\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
72
|
+
children: "This aspect is only configurable using the 'variants' workspace API."
|
|
73
|
+
}), "\n"]
|
|
74
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
75
|
+
children: "Package properties"
|
|
76
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
77
|
+
children: ["Use the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
78
|
+
children: "packageJson"
|
|
79
|
+
}), " property to add or override the default ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
80
|
+
children: "package.json"
|
|
81
|
+
}), " for your component packages."]
|
|
82
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.blockquote, {
|
|
83
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
84
|
+
children: ["Warning! Packages with a modified ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
85
|
+
children: "name"
|
|
86
|
+
}), " property will not be published to Bit.dev's registry."]
|
|
87
|
+
}), "\n"]
|
|
88
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
89
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
90
|
+
className: "language-js",
|
|
91
|
+
children: "{\n \"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"name\": \"@{scope}/{name}\",\n \"private\": false,\n \"main\": \"dist/{main}.js\",\n \"custom-prop\": \"value\"\n }\n }\n }\n}\n"
|
|
92
|
+
})
|
|
93
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
94
|
+
children: "Publish"
|
|
95
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.blockquote, {
|
|
96
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
97
|
+
children: ["If ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
98
|
+
children: "publishConfig"
|
|
99
|
+
}), " or ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
100
|
+
children: "name"
|
|
101
|
+
}), " are not set, packages will be published to Bit.dev's registry."]
|
|
102
|
+
}), "\n"]
|
|
103
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h5, {
|
|
104
|
+
children: "npm arguments"
|
|
105
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
106
|
+
children: ["You can specify additional arguments to the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
107
|
+
children: "npm publish"
|
|
108
|
+
}), " command by adding an array of args to ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
109
|
+
children: "packageManagerPublishArgs"
|
|
110
|
+
}), "."]
|
|
111
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
112
|
+
children: "For example:"
|
|
113
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
114
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
115
|
+
className: "language-js",
|
|
116
|
+
children: "\"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageManagerPublishArgs\": [\"--access public\"]\n }\n}\n"
|
|
117
|
+
})
|
|
118
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
119
|
+
children: "npmjs Registry"
|
|
120
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.ul, {
|
|
121
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
122
|
+
children: ["Use the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
123
|
+
children: "name"
|
|
124
|
+
}), " property to set the publishing process to your ", (0, _jsxRuntime.jsx)(_components.a, {
|
|
125
|
+
href: "https://docs.npmjs.com/cli/v6/using-npm/scope",
|
|
126
|
+
children: "npm scope"
|
|
127
|
+
}), "."]
|
|
128
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
129
|
+
children: ["Use the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
130
|
+
children: "private"
|
|
131
|
+
}), " ", (0, _jsxRuntime.jsx)(_components.em, {
|
|
132
|
+
children: "(boolean)"
|
|
133
|
+
}), " property to set packages to be published with either private or public access."]
|
|
134
|
+
}), "\n"]
|
|
135
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
136
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
137
|
+
className: "language-js",
|
|
138
|
+
children: "{\n \"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"name\": \"@{scope}/{name}\",\n \"private\": false,\n }\n }\n }\n}\n"
|
|
139
|
+
})
|
|
140
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.ul, {
|
|
141
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
142
|
+
children: ["By default, when specifying ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
143
|
+
children: "name"
|
|
144
|
+
}), " or ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
145
|
+
children: "publishConfig"
|
|
146
|
+
}), ", it'll publish to NPM. In some rare cases, this is not desired, to cancel it, add the config ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
147
|
+
children: "\"avoidPublishToNPM\": true"
|
|
148
|
+
})]
|
|
149
|
+
}), "\n"]
|
|
150
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
151
|
+
children: "Private registry"
|
|
152
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
153
|
+
children: ["Use the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
154
|
+
children: "scope"
|
|
155
|
+
}), " and ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
156
|
+
children: "registry"
|
|
157
|
+
}), " properties to configure the publishing process to your own private registry (and scope)."]
|
|
158
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
159
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
160
|
+
className: "language-js",
|
|
161
|
+
children: "\"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"publishConfig\": {\n \"scope\": \"@custom\",\n \"registry\": \"http://localhost:4873\"\n }\n }\n }\n}\n"
|
|
162
|
+
})
|
|
163
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.blockquote, {
|
|
164
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
165
|
+
children: ["Packages with a modified ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
166
|
+
children: "publishConfig"
|
|
167
|
+
}), " property will not be published to Bit.dev's registry."]
|
|
168
|
+
}), "\n"]
|
|
169
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
170
|
+
children: "Placeholders"
|
|
171
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
172
|
+
children: "Placeholders are an easy way to inject component-specific information into the 'pkg' configurations."
|
|
173
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.ul, {
|
|
174
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
175
|
+
children: [(0, _jsxRuntime.jsx)(_components.code, {
|
|
176
|
+
children: "{name}"
|
|
177
|
+
}), " - The name of the component."]
|
|
178
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
179
|
+
children: [(0, _jsxRuntime.jsx)(_components.code, {
|
|
180
|
+
children: "{scope}"
|
|
181
|
+
}), " - The name of the component scope."]
|
|
182
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
183
|
+
children: [(0, _jsxRuntime.jsx)(_components.code, {
|
|
184
|
+
children: "{main}"
|
|
185
|
+
}), " - the name of the main file (leaving out the extension) - for example ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
186
|
+
children: "index.js"
|
|
187
|
+
}), " will be ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
188
|
+
children: "index"
|
|
189
|
+
}), "."]
|
|
190
|
+
}), "\n"]
|
|
191
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
192
|
+
children: "For example:"
|
|
193
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
194
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
195
|
+
className: "language-js",
|
|
196
|
+
children: " \"packageJson\": {\n \"main\": \"dist/{main}.js\"\n }\n"
|
|
197
|
+
})
|
|
198
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
199
|
+
children: ".npmignore"
|
|
200
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
201
|
+
children: "Add records to the .npmignore file before a package is published or pack.\nFor example, if you don't want the source files to be part of the package, you can add them to the .npmignore."
|
|
202
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
|
|
203
|
+
children: ["The API to add records to this file is exposed in the environment: ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
204
|
+
children: "getNpmIgnore()"
|
|
205
|
+
}), "."]
|
|
206
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
207
|
+
children: "For example, the following was added to the Aspect env."
|
|
208
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
209
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
210
|
+
className: "language-js",
|
|
211
|
+
children: "getNpmIgnore() {\n // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.\n return ['/*.ts']\n}\n"
|
|
212
|
+
})
|
|
213
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h3, {
|
|
214
|
+
children: "CLI Reference"
|
|
215
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
216
|
+
children: "Pack"
|
|
217
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
218
|
+
children: "Creates a TAR file (to be published to a node package registry):"
|
|
219
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
220
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
221
|
+
className: "language-shell",
|
|
222
|
+
children: "bit pack <component-id>\n"
|
|
223
|
+
})
|
|
224
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
225
|
+
children: "Overrides the existing TAR file (in the same location):"
|
|
226
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
227
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
228
|
+
className: "language-shell",
|
|
229
|
+
children: "bit pack <component-id> --override\n\nbit pack <component-id> -o\n"
|
|
230
|
+
})
|
|
231
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
232
|
+
children: "Returns the output in a JSON format:"
|
|
233
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
234
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
235
|
+
className: "language-shell",
|
|
236
|
+
children: "bit pack <component-id> --json\n\nbit pack <component-id> -j\n"
|
|
237
|
+
})
|
|
238
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.h4, {
|
|
239
|
+
children: "Publish"
|
|
240
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
241
|
+
children: "Publishes an exported component:"
|
|
242
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
243
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
244
|
+
className: "language-shell",
|
|
245
|
+
children: "bit publish <componentId>\n"
|
|
246
|
+
})
|
|
247
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
248
|
+
children: "Publishes a staged component that has not yet been exported:"
|
|
249
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
250
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
251
|
+
className: "language-shell",
|
|
252
|
+
children: "bit publish <component-id> --allow-staged\n"
|
|
253
|
+
})
|
|
254
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
255
|
+
children: "Checks if the publishing process will be done successfully (without publishing):"
|
|
256
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
257
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
258
|
+
className: "language-shell",
|
|
259
|
+
children: "bit publish <component-id> --dry-run\n\nbit publish <component-id> -d\n"
|
|
260
|
+
})
|
|
261
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.p, {
|
|
262
|
+
children: "Returns the output as JSON:"
|
|
263
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
264
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
265
|
+
className: "language-shell",
|
|
266
|
+
children: "bit publish <component-id> --json\n\nbit publish <component-id> --j\n"
|
|
267
|
+
})
|
|
268
|
+
})]
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function MDXContent() {
|
|
272
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
273
|
+
var _provideComponents$pr = _objectSpread(_objectSpread({}, (0, _react.useMDXComponents)()), props.components),
|
|
274
|
+
MDXLayout = _provideComponents$pr.wrapper;
|
|
275
|
+
return MDXLayout ? (0, _jsxRuntime.jsx)(MDXLayout, _objectSpread(_objectSpread({}, props), {}, {
|
|
276
|
+
children: (0, _jsxRuntime.jsx)(_createMdxContent, _objectSpread({}, props))
|
|
277
|
+
})) : _createMdxContent(props);
|
|
278
|
+
}
|
|
163
279
|
|
|
164
280
|
//# sourceMappingURL=pkg.mdx.js.map
|
package/dist/pkg.mdx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_react2","_excluded","e","__esModule","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","layoutProps","MDXLayout","MDXContent","_ref","components","props","mdx","mdxType","parentName","isMDXComponent"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pkg_aspect-docs_pkg@0.0.174","sources":["pkg.mdx.js"],"sourcesContent":["\n// @ts-nocheck\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\n\n\n\nconst layoutProps = {\n \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n <p>{`Bit components can be thought of as a super-set of standard packaged node modules.\nEach component contains a consumable package in addition to its documentation, history and other information that enables it to be independently developed and maintained.`}</p>\n <p>{`The PKG aspect handles the configuration, publishing and packing of component packages.\nIt adds its own build task to the build pipeline, to create component packages and include them in as part of the component artifacts.\nThis automation includes generating the package name and other properties according to the component's details.`}</p>\n <h4>{`Features`}</h4>\n <ul>\n <li parentName=\"ul\"><strong parentName=\"li\">{`Efficient `}<inlineCode parentName=\"strong\">{`package.json`}</inlineCode>{` configuration:`}</strong>{` Use the PKG's workspace config API to add or override `}<inlineCode parentName=\"li\">{`package.json`}</inlineCode>{` properties to a group of components, all at once.\nUse PKG's 'placeholders' to integrate component-specific data into the component's package configurations.`}</li>\n <li parentName=\"ul\"><strong parentName=\"li\">{`An API for programmable `}<inlineCode parentName=\"strong\">{`package.json`}</inlineCode>{` configuration:`}</strong>{` Use PKG's API to provide your extensions with \"packaging capabilities\". Modify the `}<inlineCode parentName=\"li\">{`package.json`}</inlineCode>{` to suit your extension's needs, whether it is an environment or any other type of extension.`}</li>\n <li parentName=\"ul\"><strong parentName=\"li\">{`Automated packing and publishing:`}</strong>{` - PKG is registered to your build pipeline. That means every 'build' will also test 'packing' and every tagging of a new release version will also include 'publishing'. Your components and packages versions are alway in-sync.`}</li>\n <li parentName=\"ul\"><strong parentName=\"li\">{`\"On-demand\" packing and publishing:`}</strong>{` - PKG offers the `}<inlineCode parentName=\"li\">{`pack`}</inlineCode>{` and `}<inlineCode parentName=\"li\">{`preview`}</inlineCode>{` CLI commands for a manual and on-demand usage.`}</li>\n </ul>\n <h3>{`Quickstart & configuration`}</h3>\n <blockquote>\n <p parentName=\"blockquote\">{`This aspect is only configurable using the 'variants' workspace API.`}</p>\n </blockquote>\n <h4>{`Package properties`}</h4>\n <p>{`Use the `}<inlineCode parentName=\"p\">{`packageJson`}</inlineCode>{` property to add or override the default `}<inlineCode parentName=\"p\">{`package.json`}</inlineCode>{` for your component packages.`}</p>\n <blockquote>\n <p parentName=\"blockquote\">{`Warning! Packages with a modified `}<inlineCode parentName=\"p\">{`name`}</inlineCode>{` property will not be published to Bit.dev's registry.`}</p>\n </blockquote>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-js\"\n }}>{`{\n \"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"name\": \"@{scope}/{name}\",\n \"private\": false,\n \"main\": \"dist/{main}.js\",\n \"custom-prop\": \"value\"\n }\n }\n }\n}\n`}</code></pre>\n <h4>{`Publish`}</h4>\n <blockquote>\n <p parentName=\"blockquote\">{`If `}<inlineCode parentName=\"p\">{`publishConfig`}</inlineCode>{` or `}<inlineCode parentName=\"p\">{`name`}</inlineCode>{` are not set, packages will be published to Bit.dev's registry.`}</p>\n </blockquote>\n <h5>{`npm arguments`}</h5>\n <p>{`You can specify additional arguments to the `}<inlineCode parentName=\"p\">{`npm publish`}</inlineCode>{` command by adding an array of args to `}<inlineCode parentName=\"p\">{`packageManagerPublishArgs`}</inlineCode>{`.`}</p>\n <p>{`For example:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-js\"\n }}>{`\"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageManagerPublishArgs\": [\"--access public\"]\n }\n}\n`}</code></pre>\n <h4>{`npmjs Registry`}</h4>\n <ul>\n <li parentName=\"ul\">{`Use the `}<inlineCode parentName=\"li\">{`name`}</inlineCode>{` property to set the publishing process to your `}<a parentName=\"li\" {...{\n \"href\": \"https://docs.npmjs.com/cli/v6/using-npm/scope\"\n }}>{`npm scope`}</a>{`.`}</li>\n <li parentName=\"ul\">{`Use the `}<inlineCode parentName=\"li\">{`private`}</inlineCode>{` `}<em parentName=\"li\">{`(boolean)`}</em>{` property to set packages to be published with either private or public access.`}</li>\n </ul>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-js\"\n }}>{`{\n \"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"name\": \"@{scope}/{name}\",\n \"private\": false,\n }\n }\n }\n}\n`}</code></pre>\n <ul>\n <li parentName=\"ul\">{`By default, when specifying `}<inlineCode parentName=\"li\">{`name`}</inlineCode>{` or `}<inlineCode parentName=\"li\">{`publishConfig`}</inlineCode>{`, it'll publish to NPM. In some rare cases, this is not desired, to cancel it, add the config `}<inlineCode parentName=\"li\">{`\"avoidPublishToNPM\": true`}</inlineCode></li>\n </ul>\n <h4>{`Private registry`}</h4>\n <p>{`Use the `}<inlineCode parentName=\"p\">{`scope`}</inlineCode>{` and `}<inlineCode parentName=\"p\">{`registry`}</inlineCode>{` properties to configure the publishing process to your own private registry (and scope).`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-js\"\n }}>{`\"ui/*\": {\n \"teambit.pkg/pkg\": {\n \"packageJson\": {\n \"publishConfig\": {\n \"scope\": \"@custom\",\n \"registry\": \"http://localhost:4873\"\n }\n }\n }\n}\n`}</code></pre>\n <blockquote>\n <p parentName=\"blockquote\">{`Packages with a modified `}<inlineCode parentName=\"p\">{`publishConfig`}</inlineCode>{` property will not be published to Bit.dev's registry.`}</p>\n </blockquote>\n <h4>{`Placeholders`}</h4>\n <p>{`Placeholders are an easy way to inject component-specific information into the 'pkg' configurations.`}</p>\n <ul>\n <li parentName=\"ul\"><inlineCode parentName=\"li\">{`{name}`}</inlineCode>{` - The name of the component.`}</li>\n <li parentName=\"ul\"><inlineCode parentName=\"li\">{`{scope}`}</inlineCode>{` - The name of the component scope.`}</li>\n <li parentName=\"ul\"><inlineCode parentName=\"li\">{`{main}`}</inlineCode>{` - the name of the main file (leaving out the extension) - for example `}<inlineCode parentName=\"li\">{`index.js`}</inlineCode>{` will be `}<inlineCode parentName=\"li\">{`index`}</inlineCode>{`.`}</li>\n </ul>\n <p>{`For example:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-js\"\n }}>{` \"packageJson\": {\n \"main\": \"dist/{main}.js\"\n }\n`}</code></pre>\n <h4>{`.npmignore`}</h4>\n <p>{`Add records to the .npmignore file before a package is published or pack.\nFor example, if you don't want the source files to be part of the package, you can add them to the .npmignore.`}</p>\n <p>{`The API to add records to this file is exposed in the environment: `}<inlineCode parentName=\"p\">{`getNpmIgnore()`}</inlineCode>{`.`}</p>\n <p>{`For example, the following was added to the Aspect env.`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-js\"\n }}>{`getNpmIgnore() {\n // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.\n return ['/*.ts']\n}\n`}</code></pre>\n <h3>{`CLI Reference`}</h3>\n <h4>{`Pack`}</h4>\n <p>{`Creates a TAR file (to be published to a node package registry):`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit pack <component-id>\n`}</code></pre>\n <p>{`Overrides the existing TAR file (in the same location):`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit pack <component-id> --override\n\nbit pack <component-id> -o\n`}</code></pre>\n <p>{`Returns the output in a JSON format:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit pack <component-id> --json\n\nbit pack <component-id> -j\n`}</code></pre>\n <h4>{`Publish`}</h4>\n <p>{`Publishes an exported component:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit publish <componentId>\n`}</code></pre>\n <p>{`Publishes a staged component that has not yet been exported:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit publish <component-id> --allow-staged\n`}</code></pre>\n <p>{`Checks if the publishing process will be done successfully (without publishing):`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit publish <component-id> --dry-run\n\nbit publish <component-id> -d\n`}</code></pre>\n <p>{`Returns the output as JSON:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-shell\"\n }}>{`bit publish <component-id> --json\n\nbit publish <component-id> --j\n`}</code></pre>\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAAmC,IAAAE,SAAA,mBAFnC;AAAA,SAAAH,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAN,CAAA,MAAAA,CAAA,GAAAO,SAAA,CAAAC,MAAA,EAAAR,CAAA,UAAAS,CAAA,GAAAF,SAAA,CAAAP,CAAA,YAAAU,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAAA,SAAAO,yBAAAd,CAAA,EAAAS,CAAA,gBAAAT,CAAA,iBAAAe,CAAA,EAAAL,CAAA,EAAAM,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AAA6B,GAAA,uBAAmB,CAAC,EACpB,IAAA7B,OAAA,CAAA6B,GAAA,+CAA0C,CAAC,EAC3C,IAAA7B,OAAA,CAAA6B,GAAA,eAAK,IAAA7B,OAAA,CAAA6B,GAAA;IAAME,UAAU,EAAC,KAAK;IACvB,WAAW,EAAE;EAAgB,gCAE7B,CAAM,CAAC,EACX,IAAA/B,OAAA,CAAA6B,GAAA,2EAAsE,CAAC,EACvE,IAAA7B,OAAA,CAAA6B,GAAA,eAAK,IAAA7B,OAAA,CAAA6B,GAAA;IAAME,UAAU,EAAC,KAAK;IACvB,WAAW,EAAE;EAAgB,gDAE7B,CAAM,CAAC,EACX,IAAA/B,OAAA,CAAA6B,GAAA,+FAA0F,CAAC,EAC3F,IAAA7B,OAAA,CAAA6B,GAAA,eAAK,IAAA7B,OAAA,CAAA6B,GAAA;IAAME,UAAU,EAAC,KAAK;IACvB,WAAW,EAAE;EAAgB,4EAI7B,CAAM,CAAC,EACX,IAAA/B,OAAA,CAAA6B,GAAA,0CAAqC,CAAC,EACtC,IAAA7B,OAAA,CAAA6B,GAAA,eAAK,IAAA7B,OAAA,CAAA6B,GAAA;IAAME,UAAU,EAAC,KAAK;IACvB,WAAW,EAAE;EAAgB,0EAI7B,CAAM,CACC,CAAC;AAChB;AACA;AACAN,UAAU,CAACO,cAAc,GAAG,IAAI","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_jsxRuntime","require","_react","_typeof","o","Symbol","iterator","constructor","prototype","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","toPrimitive","call","TypeError","String","Number","MDXContent","isMDXComponent","_createMdxContent","props","_components","a","blockquote","code","em","h3","h4","h5","li","p","pre","strong","ul","_provideComponents","components","_jsxs","_Fragment","children","_jsx","className","href","undefined","_provideComponents$pr","MDXLayout","wrapper"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pkg_aspect-docs_pkg@0.0.175","sources":["pkg.mdx.js"],"sourcesContent":["MDXContent.isMDXComponent = true;\nimport {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from \"react/jsx-runtime\";\nimport {useMDXComponents as _provideComponents} from \"@mdx-js/react\";\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n blockquote: \"blockquote\",\n code: \"code\",\n em: \"em\",\n h3: \"h3\",\n h4: \"h4\",\n h5: \"h5\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Bit components can be thought of as a super-set of standard packaged node modules.\\nEach component contains a consumable package in addition to its documentation, history and other information that enables it to be independently developed and maintained.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The PKG aspect handles the configuration, publishing and packing of component packages.\\nIt adds its own build task to the build pipeline, to create component packages and include them in as part of the component artifacts.\\nThis automation includes generating the package name and other properties according to the component's details.\"\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Features\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsxs(_components.strong, {\n children: [\"Efficient \", _jsx(_components.code, {\n children: \"package.json\"\n }), \" configuration:\"]\n }), \" Use the PKG's workspace config API to add or override \", _jsx(_components.code, {\n children: \"package.json\"\n }), \" properties to a group of components, all at once.\\nUse PKG's 'placeholders' to integrate component-specific data into the component's package configurations.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsxs(_components.strong, {\n children: [\"An API for programmable \", _jsx(_components.code, {\n children: \"package.json\"\n }), \" configuration:\"]\n }), \" Use PKG's API to provide your extensions with \\\"packaging capabilities\\\". Modify the \", _jsx(_components.code, {\n children: \"package.json\"\n }), \" to suit your extension's needs, whether it is an environment or any other type of extension.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Automated packing and publishing:\"\n }), \" - PKG is registered to your build pipeline. That means every 'build' will also test 'packing' and every tagging of a new release version will also include 'publishing'. Your components and packages versions are alway in-sync.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"\\\"On-demand\\\" packing and publishing:\"\n }), \" - PKG offers the \", _jsx(_components.code, {\n children: \"pack\"\n }), \" and \", _jsx(_components.code, {\n children: \"preview\"\n }), \" CLI commands for a manual and on-demand usage.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Quickstart & configuration\"\n }), \"\\n\", _jsxs(_components.blockquote, {\n children: [\"\\n\", _jsx(_components.p, {\n children: \"This aspect is only configurable using the 'variants' workspace API.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Package properties\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Use the \", _jsx(_components.code, {\n children: \"packageJson\"\n }), \" property to add or override the default \", _jsx(_components.code, {\n children: \"package.json\"\n }), \" for your component packages.\"]\n }), \"\\n\", _jsxs(_components.blockquote, {\n children: [\"\\n\", _jsxs(_components.p, {\n children: [\"Warning! Packages with a modified \", _jsx(_components.code, {\n children: \"name\"\n }), \" property will not be published to Bit.dev's registry.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-js\",\n children: \"{\\n \\\"ui/*\\\": {\\n \\\"teambit.pkg/pkg\\\": {\\n \\\"packageJson\\\": {\\n \\\"name\\\": \\\"@{scope}/{name}\\\",\\n \\\"private\\\": false,\\n \\\"main\\\": \\\"dist/{main}.js\\\",\\n \\\"custom-prop\\\": \\\"value\\\"\\n }\\n }\\n }\\n}\\n\"\n })\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Publish\"\n }), \"\\n\", _jsxs(_components.blockquote, {\n children: [\"\\n\", _jsxs(_components.p, {\n children: [\"If \", _jsx(_components.code, {\n children: \"publishConfig\"\n }), \" or \", _jsx(_components.code, {\n children: \"name\"\n }), \" are not set, packages will be published to Bit.dev's registry.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h5, {\n children: \"npm arguments\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"You can specify additional arguments to the \", _jsx(_components.code, {\n children: \"npm publish\"\n }), \" command by adding an array of args to \", _jsx(_components.code, {\n children: \"packageManagerPublishArgs\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"For example:\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-js\",\n children: \"\\\"ui/*\\\": {\\n \\\"teambit.pkg/pkg\\\": {\\n \\\"packageManagerPublishArgs\\\": [\\\"--access public\\\"]\\n }\\n}\\n\"\n })\n }), \"\\n\", _jsx(_components.h4, {\n children: \"npmjs Registry\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Use the \", _jsx(_components.code, {\n children: \"name\"\n }), \" property to set the publishing process to your \", _jsx(_components.a, {\n href: \"https://docs.npmjs.com/cli/v6/using-npm/scope\",\n children: \"npm scope\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Use the \", _jsx(_components.code, {\n children: \"private\"\n }), \" \", _jsx(_components.em, {\n children: \"(boolean)\"\n }), \" property to set packages to be published with either private or public access.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-js\",\n children: \"{\\n \\\"ui/*\\\": {\\n \\\"teambit.pkg/pkg\\\": {\\n \\\"packageJson\\\": {\\n \\\"name\\\": \\\"@{scope}/{name}\\\",\\n \\\"private\\\": false,\\n }\\n }\\n }\\n}\\n\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"By default, when specifying \", _jsx(_components.code, {\n children: \"name\"\n }), \" or \", _jsx(_components.code, {\n children: \"publishConfig\"\n }), \", it'll publish to NPM. In some rare cases, this is not desired, to cancel it, add the config \", _jsx(_components.code, {\n children: \"\\\"avoidPublishToNPM\\\": true\"\n })]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Private registry\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Use the \", _jsx(_components.code, {\n children: \"scope\"\n }), \" and \", _jsx(_components.code, {\n children: \"registry\"\n }), \" properties to configure the publishing process to your own private registry (and scope).\"]\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-js\",\n children: \"\\\"ui/*\\\": {\\n \\\"teambit.pkg/pkg\\\": {\\n \\\"packageJson\\\": {\\n \\\"publishConfig\\\": {\\n \\\"scope\\\": \\\"@custom\\\",\\n \\\"registry\\\": \\\"http://localhost:4873\\\"\\n }\\n }\\n }\\n}\\n\"\n })\n }), \"\\n\", _jsxs(_components.blockquote, {\n children: [\"\\n\", _jsxs(_components.p, {\n children: [\"Packages with a modified \", _jsx(_components.code, {\n children: \"publishConfig\"\n }), \" property will not be published to Bit.dev's registry.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Placeholders\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Placeholders are an easy way to inject component-specific information into the 'pkg' configurations.\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"{name}\"\n }), \" - The name of the component.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"{scope}\"\n }), \" - The name of the component scope.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"{main}\"\n }), \" - the name of the main file (leaving out the extension) - for example \", _jsx(_components.code, {\n children: \"index.js\"\n }), \" will be \", _jsx(_components.code, {\n children: \"index\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"For example:\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-js\",\n children: \" \\\"packageJson\\\": {\\n \\\"main\\\": \\\"dist/{main}.js\\\"\\n }\\n\"\n })\n }), \"\\n\", _jsx(_components.h4, {\n children: \".npmignore\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Add records to the .npmignore file before a package is published or pack.\\nFor example, if you don't want the source files to be part of the package, you can add them to the .npmignore.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The API to add records to this file is exposed in the environment: \", _jsx(_components.code, {\n children: \"getNpmIgnore()\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"For example, the following was added to the Aspect env.\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-js\",\n children: \"getNpmIgnore() {\\n // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.\\n return ['/*.ts']\\n}\\n\"\n })\n }), \"\\n\", _jsx(_components.h3, {\n children: \"CLI Reference\"\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Pack\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Creates a TAR file (to be published to a node package registry):\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit pack <component-id>\\n\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Overrides the existing TAR file (in the same location):\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit pack <component-id> --override\\n\\nbit pack <component-id> -o\\n\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Returns the output in a JSON format:\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit pack <component-id> --json\\n\\nbit pack <component-id> -j\\n\"\n })\n }), \"\\n\", _jsx(_components.h4, {\n children: \"Publish\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Publishes an exported component:\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit publish <componentId>\\n\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Publishes a staged component that has not yet been exported:\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit publish <component-id> --allow-staged\\n\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Checks if the publishing process will be done successfully (without publishing):\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit publish <component-id> --dry-run\\n\\nbit publish <component-id> -d\\n\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Returns the output as JSON:\"\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-shell\",\n children: \"bit publish <component-id> --json\\n\\nbit publish <component-id> --j\\n\"\n })\n })]\n });\n}\nexport default function MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\n"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAqE,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAAA,SAAAK,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAA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EAAE;MACZ,CAAC;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,IAAAC,eAAI,EAAClB,WAAW,CAACS,CAAC,EAAE;MAC5BQ,QAAQ,EAAE;IACZ,CAAC,CAAC,EAAE,IAAI,EAAE,IAAAC,eAAI,EAAClB,WAAW,CAACU,GAAG,EAAE;MAC9BO,QAAQ,EAAE,IAAAC,eAAI,EAAClB,WAAW,CAACG,IAAI,EAAE;QAC/BgB,SAAS,EAAE,gBAAgB;QAC3BF,QAAQ,EAAE;MACZ,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AACe,SAASrB,UAAUA,CAAA,EAAa;EAAA,IAAZG,KAAK,GAAArB,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAA2C,SAAA,GAAA3C,SAAA,MAAG,CAAC,CAAC;EAC3C,IAAA4C,qBAAA,GAAA7C,aAAA,CAAAA,aAAA,KACK,IAAAoC,uBAAkB,EAAC,CAAC,GACpBd,KAAK,CAACe,UAAU;IAFLS,SAAS,GAAAD,qBAAA,CAAlBE,OAAO;EAId,OAAOD,SAAS,GAAG,IAAAL,eAAI,EAACK,SAAS,EAAA9C,aAAA,CAAAA,aAAA,KAC5BsB,KAAK;IACRkB,QAAQ,EAAE,IAAAC,eAAI,EAACpB,iBAAiB,EAAArB,aAAA,KAC3BsB,KAAK,CACT;EAAC,EACH,CAAC,GAAGD,iBAAiB,CAACC,KAAK,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pkg_aspect-docs_pkg@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pkg_aspect-docs_pkg@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pkg_aspect-docs_pkg@0.0.175/dist/pkg.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pkg_aspect-docs_pkg@0.0.175/dist/pkg.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/pkg.aspect-docs.pkg",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.175",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/pkg/aspect-docs/pkg",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.pkg",
|
|
8
8
|
"name": "aspect-docs/pkg",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.175"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"@teambit/mdx.ui.mdx-scope-context": "1.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/react": "^
|
|
17
|
+
"@types/react": "^19.0.0",
|
|
18
18
|
"@types/mocha": "9.1.0",
|
|
19
19
|
"@types/node": "12.20.4",
|
|
20
|
-
"@types/react-dom": "^
|
|
20
|
+
"@types/react-dom": "^19.0.0",
|
|
21
21
|
"@types/jest": "^26.0.0",
|
|
22
22
|
"@babel/runtime": "7.20.0",
|
|
23
23
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@teambit/mdx.ui.mdx-layout": "1.0.12"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"react": "^
|
|
29
|
-
"react-dom": "^
|
|
28
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
29
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
30
30
|
},
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"optionalDependencies": {},
|