File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export interface TemplateVars {
30
30
nodeVersion ?: string
31
31
}
32
32
33
- export interface ContentsPlugin {
33
+ export interface PluginInfo {
34
34
name : string ,
35
35
html_url : string
36
36
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {Command} from 'commander';
14
14
// Local modules.
15
15
import { createFiles } from './generator' ;
16
16
import { addPackage , listPackages } from './installer' ;
17
- import { AppConfig , ContentsPlugin } from '../index' ;
17
+ import { AppConfig , PluginInfo } from '../index' ;
18
18
19
19
// Process CLI options.
20
20
const program = new Command ( ) ;
@@ -122,7 +122,7 @@ program
122
122
// List available plugins.
123
123
const plugins = await listPackages ( ) ;
124
124
125
- const output = ( plugins . map ( ( plugin : ContentsPlugin ) => {
125
+ const output = ( plugins . map ( ( plugin : PluginInfo ) => {
126
126
return ` - ${ plugin . name } (${ plugin . html_url } )\n` ;
127
127
} ) ) . join ( '' ) ;
128
128
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import fetch from 'node-fetch';
13
13
import * as fs from 'fs' ;
14
14
15
15
// Local modules.
16
- import { ContentsPlugin } from '../index' ;
16
+ import { PluginInfo } from '../index' ;
17
17
18
18
// Github repository URLs.
19
19
const REPO_CONTENT_URL = 'https://raw.githubusercontent.com/lambda-lambda-lambda/middleware/master' ;
@@ -48,7 +48,7 @@ export async function addPackage(name: string): Promise<string|undefined> {
48
48
/**
49
49
* Request plugin list from the package repo.
50
50
*/
51
- export function listPackages ( ) : Promise < ContentsPlugin [ ] > {
51
+ export function listPackages ( ) : Promise < PluginInfo [ ] > {
52
52
return fetch ( REPO_PLUGIN_URL )
53
53
54
54
// Handle errors.
You can’t perform that action at this time.
0 commit comments