
import * as path from 'path';
import * as fs from 'fs-extra-promise';
import { shell2 } from "./util";


export async function run(name: string, sub: string[], options: any) {
    const diranme = sub && sub.length > 0 ? sub[0] : ".";
    const json = await fs.readJSONAsync(path.join(diranme, 'package.json'));
    const packageName = json.name;
    const result = await shell2('npm', ['publish', '--access', 'public'])
    console.log(result)
}


