Move type
This commit is contained in:
@@ -6,12 +6,9 @@ import * as ts from 'typescript';
|
||||
import * as yargs from 'yargs';
|
||||
|
||||
import { constants } from './constants';
|
||||
import { ExportPathToExportedItems } from './types';
|
||||
import { utils } from './utils/utils';
|
||||
|
||||
export interface ExportPathToExportedItems {
|
||||
[pkgName: string]: string[];
|
||||
}
|
||||
|
||||
const args = yargs
|
||||
.option('package', {
|
||||
describe: 'Monorepo sub-package for which to generate DocJSON',
|
||||
@@ -26,8 +23,12 @@ const args = yargs
|
||||
.example("$0 --package '0x.js' --isStaging true", 'Full usage example').argv;
|
||||
|
||||
(async () => {
|
||||
console.log('I RAN! - generateAndUploadDocsAsync');
|
||||
const packageName = args.package;
|
||||
const isStaging = args.isStaging;
|
||||
if (_.isEmpty(packageName)) {
|
||||
return; // We are not runninng in a command-line env.
|
||||
}
|
||||
|
||||
await generateAndUploadDocsAsync(packageName, isStaging);
|
||||
})();
|
||||
|
@@ -49,3 +49,7 @@ export interface Package {
|
||||
location: string;
|
||||
packageJson: PackageJSON;
|
||||
}
|
||||
|
||||
export interface ExportPathToExportedItems {
|
||||
[pkgName: string]: string[];
|
||||
}
|
||||
|
Reference in New Issue
Block a user