@@ -13,15 +13,8 @@ import { paths } from '../../lib/paths';
13
13
import { Task } from '../../lib/tasks' ;
14
14
15
15
export async function command ( opts : OptionValues ) : Promise < void > {
16
- const {
17
- exportTo,
18
- forceExport,
19
- preserveTempDir,
20
- tag,
21
- useDocker,
22
- marketplaceFile,
23
- platform,
24
- } = opts ;
16
+ const { exportTo, forceExport, preserveTempDir, tag, useDocker, platform } =
17
+ opts ;
25
18
if ( ! exportTo && ! tag ) {
26
19
Task . error (
27
20
`Neither ${ chalk . white ( '--export-to' ) } or ${ chalk . white ( '--tag' ) } was specified, either specify ${ chalk . white ( '--export-to' ) } to export plugins to a directory or ${ chalk . white ( '--tag' ) } to export plugins to a container image` ,
@@ -40,19 +33,6 @@ export async function command(opts: OptionValues): Promise<void> {
40
33
return ;
41
34
}
42
35
}
43
- const maketplaceInfo : Object [ ] = [ ] ;
44
- if ( marketplaceFile ) {
45
- if ( ! fs . existsSync ( marketplaceFile ) ) {
46
- Task . error ( `Marketplace file ${ marketplaceFile } does not exist` ) ;
47
- return ;
48
- }
49
- const yamlDocuments = YAML . parseAllDocuments (
50
- fs . readFileSync ( marketplaceFile ) . toLocaleString ( ) ,
51
- ) ;
52
- for ( const document of yamlDocuments ) {
53
- maketplaceInfo . push ( document . toJS ( ) ) ;
54
- }
55
- }
56
36
const workspacePackage = ( await fs . readJson (
57
37
paths . resolveTarget ( 'package.json' ) ,
58
38
) ) as PackageJson ;
@@ -226,17 +206,6 @@ export async function command(opts: OptionValues): Promise<void> {
226
206
const flags = [
227
207
`--annotation io.backstage.dynamic-packages='${ Buffer . from ( JSON . stringify ( pluginRegistryMetadata ) ) . toString ( 'base64' ) } '` ,
228
208
] ;
229
-
230
- for ( const pluginInfo of maketplaceInfo ) {
231
- const base64pluginInfo = Buffer . from (
232
- JSON . stringify ( pluginInfo ) ,
233
- ) . toString ( 'base64' ) ;
234
- const pluginName = ( pluginInfo as { metadata : { name : string } } )
235
- . metadata . name ;
236
- flags . push (
237
- `--annotation io.backstage.marketplace/${ pluginName } ='${ base64pluginInfo } '` ,
238
- ) ;
239
- }
240
209
if ( platform ) {
241
210
flags . push ( `--platform ${ platform } ` ) ;
242
211
}
0 commit comments