@teambit/eject 0.0.236 → 0.0.239
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/eject-cmd.d.ts +4 -1
- package/dist/eject-cmd.js +6 -13
- package/dist/eject-cmd.js.map +1 -1
- package/package-tar/teambit-eject-0.0.239.tgz +0 -0
- package/package.json +7 -7
- package/{preview-1655522887639.js → preview-1655868544247.js} +2 -2
- package/package-tar/teambit-eject-0.0.236.tgz +0 -0
package/dist/eject-cmd.d.ts
CHANGED
|
@@ -6,7 +6,10 @@ export declare class EjectCmd implements Command {
|
|
|
6
6
|
private logger;
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
|
-
|
|
9
|
+
arguments: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}[];
|
|
10
13
|
alias: string;
|
|
11
14
|
options: CommandOptions;
|
|
12
15
|
loader: boolean;
|
package/dist/eject-cmd.js
CHANGED
|
@@ -31,16 +31,6 @@ function _ejectTemplate() {
|
|
|
31
31
|
return data;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function _constants() {
|
|
35
|
-
const data = require("@teambit/legacy/dist/constants");
|
|
36
|
-
|
|
37
|
-
_constants = function () {
|
|
38
|
-
return data;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return data;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
34
|
function _componentsEjector() {
|
|
45
35
|
const data = require("./components-ejector");
|
|
46
36
|
|
|
@@ -55,9 +45,12 @@ class EjectCmd {
|
|
|
55
45
|
constructor(workspace, logger) {
|
|
56
46
|
this.workspace = workspace;
|
|
57
47
|
this.logger = logger;
|
|
58
|
-
(0, _defineProperty2().default)(this, "name", 'eject <pattern>');
|
|
59
|
-
(0, _defineProperty2().default)(this, "description", '
|
|
60
|
-
(0, _defineProperty2().default)(this, "
|
|
48
|
+
(0, _defineProperty2().default)(this, "name", 'eject <component-pattern>');
|
|
49
|
+
(0, _defineProperty2().default)(this, "description", 'replace components maintained in the workspace with their corresponding packages');
|
|
50
|
+
(0, _defineProperty2().default)(this, "arguments", [{
|
|
51
|
+
name: 'component-pattern',
|
|
52
|
+
description: 'component name, component id, or component pattern.\nuse component pattern to select multiple components. use comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button"\nwrap the pattern with quotes'
|
|
53
|
+
}]);
|
|
61
54
|
(0, _defineProperty2().default)(this, "alias", 'E');
|
|
62
55
|
(0, _defineProperty2().default)(this, "options", [['f', 'force', 'ignore local version. remove the components even when they are staged or modified'], ['j', 'json', 'print the results in JSON format'], ['', 'keep-files', 'keep the component files in the workspace intact']]);
|
|
63
56
|
(0, _defineProperty2().default)(this, "loader", true);
|
package/dist/eject-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EjectCmd","constructor","workspace","logger","
|
|
1
|
+
{"version":3,"names":["EjectCmd","constructor","workspace","logger","name","description","report","pattern","force","json","keepFiles","componentIds","idsByPattern","componentEjector","ComponentsEjector","ejectResults","eject","JSON","stringify","ejectTemplate"],"sources":["eject-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { Workspace } from '@teambit/workspace';\nimport ejectTemplate from '@teambit/legacy/dist/cli/templates/eject-template';\nimport { Logger } from '@teambit/logger';\nimport { ComponentsEjector } from './components-ejector';\n\nexport class EjectCmd implements Command {\n name = 'eject <component-pattern>';\n description = 'replace components maintained in the workspace with their corresponding packages';\n arguments = [\n {\n name: 'component-pattern',\n description:\n 'component name, component id, or component pattern.\\nuse component pattern to select multiple components. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\\nwrap the pattern with quotes',\n },\n ];\n alias = 'E';\n options = [\n ['f', 'force', 'ignore local version. remove the components even when they are staged or modified'],\n ['j', 'json', 'print the results in JSON format'],\n ['', 'keep-files', 'keep the component files in the workspace intact'],\n ] as CommandOptions;\n loader = true;\n migration = true;\n group = 'development';\n\n constructor(private workspace: Workspace, private logger: Logger) {}\n\n async report(\n [pattern]: [string],\n { force = false, json = false, keepFiles = false }: { force: boolean; json: boolean; keepFiles: boolean }\n ): Promise<string> {\n const componentIds = await this.workspace.idsByPattern(pattern);\n const componentEjector = new ComponentsEjector(this.workspace, this.logger, componentIds, { force, keepFiles });\n const ejectResults = await componentEjector.eject();\n if (json) return JSON.stringify(ejectResults, null, 2);\n return ejectTemplate(ejectResults);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,QAAN,CAAkC;EAoBvCC,WAAW,CAASC,SAAT,EAAuCC,MAAvC,EAAuD;IAAA,KAA9CD,SAA8C,GAA9CA,SAA8C;IAAA,KAAhBC,MAAgB,GAAhBA,MAAgB;IAAA,8CAnB3D,2BAmB2D;IAAA,qDAlBpD,kFAkBoD;IAAA,mDAjBtD,CACV;MACEC,IAAI,EAAE,mBADR;MAEEC,WAAW,EACT;IAHJ,CADU,CAiBsD;IAAA,+CAV1D,GAU0D;IAAA,iDATxD,CACR,CAAC,GAAD,EAAM,OAAN,EAAe,mFAAf,CADQ,EAER,CAAC,GAAD,EAAM,MAAN,EAAc,kCAAd,CAFQ,EAGR,CAAC,EAAD,EAAK,YAAL,EAAmB,kDAAnB,CAHQ,CASwD;IAAA,gDAJzD,IAIyD;IAAA,mDAHtD,IAGsD;IAAA,+CAF1D,aAE0D;EAAE;;EAExD,MAANC,MAAM,CACV,CAACC,OAAD,CADU,EAEV;IAAEC,KAAK,GAAG,KAAV;IAAiBC,IAAI,GAAG,KAAxB;IAA+BC,SAAS,GAAG;EAA3C,CAFU,EAGO;IACjB,MAAMC,YAAY,GAAG,MAAM,KAAKT,SAAL,CAAeU,YAAf,CAA4BL,OAA5B,CAA3B;IACA,MAAMM,gBAAgB,GAAG,KAAIC,sCAAJ,EAAsB,KAAKZ,SAA3B,EAAsC,KAAKC,MAA3C,EAAmDQ,YAAnD,EAAiE;MAAEH,KAAF;MAASE;IAAT,CAAjE,CAAzB;IACA,MAAMK,YAAY,GAAG,MAAMF,gBAAgB,CAACG,KAAjB,EAA3B;IACA,IAAIP,IAAJ,EAAU,OAAOQ,IAAI,CAACC,SAAL,CAAeH,YAAf,EAA6B,IAA7B,EAAmC,CAAnC,CAAP;IACV,OAAO,IAAAI,wBAAA,EAAcJ,YAAd,CAAP;EACD;;AA/BsC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/eject",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.239",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/workspace/eject",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "eject",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.239"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/runtime": "7.12.18",
|
|
13
13
|
"core-js": "^3.0.0",
|
|
14
14
|
"@teambit/harmony": "0.3.3",
|
|
15
15
|
"@teambit/component-id": "0.0.402",
|
|
16
|
-
"@teambit/logger": "0.0.
|
|
17
|
-
"@teambit/workspace": "0.0.
|
|
18
|
-
"@teambit/cli": "0.0.
|
|
16
|
+
"@teambit/logger": "0.0.600",
|
|
17
|
+
"@teambit/workspace": "0.0.768",
|
|
18
|
+
"@teambit/cli": "0.0.507"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/react": "^17.0.8",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/node": "12.20.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@teambit/legacy": "1.0.
|
|
29
|
+
"@teambit/legacy": "1.0.287",
|
|
30
30
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
31
31
|
"react": "^16.8.0 || ^17.0.0"
|
|
32
32
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react": "-"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@teambit/legacy": "1.0.
|
|
57
|
+
"@teambit/legacy": "1.0.287",
|
|
58
58
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
59
59
|
"react": "^16.8.0 || ^17.0.0"
|
|
60
60
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.239/dist/eject.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.239/dist/eject.docs.mdx')]
|
|
Binary file
|