@teambit/importer 0.0.132 → 0.0.135
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/importer.main.runtime.d.ts +5 -0
- package/dist/importer.main.runtime.js +11 -2
- package/dist/importer.main.runtime.js.map +1 -1
- package/package-tar/teambit-importer-0.0.135.tgz +0 -0
- package/package.json +9 -9
- package/{preview-1649301819971.js → preview-1649647448813.js} +2 -2
- package/package-tar/teambit-importer-0.0.132.tgz +0 -0
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { CLIMain } from '@teambit/cli';
|
|
2
2
|
import { DependencyResolverMain } from '@teambit/dependency-resolver';
|
|
3
|
+
import { ImportOptions, ImportResult } from '@teambit/legacy/dist/consumer/component-ops/import-components';
|
|
3
4
|
import { Workspace } from '@teambit/workspace';
|
|
4
5
|
import type { CommunityMain } from '@teambit/community';
|
|
6
|
+
import { Importer } from './importer';
|
|
5
7
|
export declare class ImporterMain {
|
|
8
|
+
private importer;
|
|
9
|
+
constructor(importer: Importer);
|
|
10
|
+
import(importOptions: ImportOptions, packageManagerArgs: string[]): Promise<ImportResult>;
|
|
6
11
|
static slots: never[];
|
|
7
12
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
8
13
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
@@ -92,14 +92,23 @@ function _importer2() {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
class ImporterMain {
|
|
95
|
+
constructor(importer) {
|
|
96
|
+
this.importer = importer;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async import(importOptions, packageManagerArgs) {
|
|
100
|
+
return this.importer.import(importOptions, packageManagerArgs);
|
|
101
|
+
}
|
|
102
|
+
|
|
95
103
|
static async provider([cli, workspace, depResolver, community]) {
|
|
104
|
+
const importer = new (_importer().Importer)(workspace, depResolver);
|
|
105
|
+
|
|
96
106
|
if (workspace && !workspace.consumer.isLegacy) {
|
|
97
107
|
cli.unregister('import');
|
|
98
|
-
const importer = new (_importer().Importer)(workspace, depResolver);
|
|
99
108
|
cli.register(new (_import().default)(importer, community.getDocsDomain()));
|
|
100
109
|
}
|
|
101
110
|
|
|
102
|
-
return new ImporterMain();
|
|
111
|
+
return new ImporterMain(importer);
|
|
103
112
|
}
|
|
104
113
|
|
|
105
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["importer.main.runtime.ts"],"names":["ImporterMain","provider","cli","workspace","depResolver","community","consumer","isLegacy","unregister","
|
|
1
|
+
{"version":3,"sources":["importer.main.runtime.ts"],"names":["ImporterMain","constructor","importer","import","importOptions","packageManagerArgs","provider","cli","workspace","depResolver","community","Importer","consumer","isLegacy","unregister","register","ImportCmd","getDocsDomain","CLIAspect","WorkspaceAspect","DependencyResolverAspect","CommunityAspect","MainRuntime","ImporterAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,YAAN,CAAmB;AACxBC,EAAAA,WAAW,CAASC,QAAT,EAA6B;AAAA,SAApBA,QAAoB,GAApBA,QAAoB;AAAE;;AAE9B,QAANC,MAAM,CAACC,aAAD,EAA+BC,kBAA/B,EAAoF;AAC9F,WAAO,KAAKH,QAAL,CAAcC,MAAd,CAAqBC,aAArB,EAAoCC,kBAApC,CAAP;AACD;;AAKoB,eAARC,QAAQ,CAAC,CAACC,GAAD,EAAMC,SAAN,EAAiBC,WAAjB,EAA8BC,SAA9B,CAAD,EAKlB;AACD,UAAMR,QAAQ,GAAG,KAAIS,oBAAJ,EAAaH,SAAb,EAAwBC,WAAxB,CAAjB;;AACA,QAAID,SAAS,IAAI,CAACA,SAAS,CAACI,QAAV,CAAmBC,QAArC,EAA+C;AAC7CN,MAAAA,GAAG,CAACO,UAAJ,CAAe,QAAf;AACAP,MAAAA,GAAG,CAACQ,QAAJ,CAAa,KAAIC,iBAAJ,EAAcd,QAAd,EAAwBQ,SAAS,CAACO,aAAV,EAAxB,CAAb;AACD;;AACD,WAAO,IAAIjB,YAAJ,CAAiBE,QAAjB,CAAP;AACD;;AAtBuB;;;gCAAbF,Y,WAOI,E;gCAPJA,Y,kBAQW,CAACkB,gBAAD,EAAYC,oBAAZ,EAA6BC,8CAA7B,EAAuDC,4BAAvD,C;gCARXrB,Y,aASMsB,kB;;AAgBnBC,4BAAeC,UAAf,CAA0BxB,YAA1B","sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { ImportOptions, ImportResult } from '@teambit/legacy/dist/consumer/component-ops/import-components';\nimport WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport { CommunityAspect } from '@teambit/community';\nimport type { CommunityMain } from '@teambit/community';\n\nimport ImportCmd from './import.cmd';\nimport { Importer } from './importer';\nimport { ImporterAspect } from './importer.aspect';\n\nexport class ImporterMain {\n constructor(private importer: Importer) {}\n\n async import(importOptions: ImportOptions, packageManagerArgs: string[]): Promise<ImportResult> {\n return this.importer.import(importOptions, packageManagerArgs);\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect, DependencyResolverAspect, CommunityAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, depResolver, community]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n CommunityMain\n ]) {\n const importer = new Importer(workspace, depResolver);\n if (workspace && !workspace.consumer.isLegacy) {\n cli.unregister('import');\n cli.register(new ImportCmd(importer, community.getDocsDomain()));\n }\n return new ImporterMain(importer);\n }\n}\n\nImporterAspect.addRuntime(ImporterMain);\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/importer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.135",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/scope/importer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.scope",
|
|
8
8
|
"name": "importer",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.135"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"ramda": "0.27.1",
|
|
15
|
-
"@teambit/harmony": "0.2.11",
|
|
16
15
|
"@babel/runtime": "7.12.18",
|
|
17
16
|
"core-js": "^3.0.0",
|
|
18
|
-
"@teambit/
|
|
19
|
-
"@teambit/
|
|
20
|
-
"@teambit/
|
|
21
|
-
"@teambit/
|
|
17
|
+
"@teambit/harmony": "0.3.3",
|
|
18
|
+
"@teambit/cli": "0.0.470",
|
|
19
|
+
"@teambit/community": "0.0.18",
|
|
20
|
+
"@teambit/dependency-resolver": "0.0.706",
|
|
21
|
+
"@teambit/workspace": "0.0.706"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/lodash": "4.14.165",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/node": "12.20.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@teambit/legacy": "1.0.
|
|
33
|
+
"@teambit/legacy": "1.0.247",
|
|
34
34
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
35
35
|
"react": "^16.8.0 || ^17.0.0"
|
|
36
36
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react": "-"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@teambit/legacy": "1.0.
|
|
61
|
+
"@teambit/legacy": "1.0.247",
|
|
62
62
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
63
63
|
"react": "^16.8.0 || ^17.0.0"
|
|
64
64
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_importer@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_importer@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_importer@0.0.135/dist/importer.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_importer@0.0.135/dist/importer.docs.mdx')]
|
|
Binary file
|