Added new package "flipper-plugin-lib" which contains re-usable code related to plugin installation
Summary: No functional changes, just refactoring for easier implementation of plugin updates installation Reviewed By: passy Differential Revision: D21902525 fbshipit-source-id: fbfa221a89b879b0d08127676b27df65ef63307d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
579172fa39
commit
339b786fb5
@@ -11,7 +11,8 @@ import {Command, flags} from '@oclif/command';
|
||||
import {args} from '@oclif/parser';
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import {runBuild, getPluginDetails} from 'flipper-pkg-lib';
|
||||
import {runBuild} from 'flipper-pkg-lib';
|
||||
import {getPluginDetails} from 'flipper-plugin-lib';
|
||||
|
||||
export default class Bundle extends Command {
|
||||
public static description = 'transpiles and bundles plugin';
|
||||
|
||||
@@ -15,7 +15,8 @@ import * as inquirer from 'inquirer';
|
||||
import * as path from 'path';
|
||||
import * as yarn from '../utils/yarn';
|
||||
import cli from 'cli-ux';
|
||||
import {runBuild, getPluginDetails} from 'flipper-pkg-lib';
|
||||
import {runBuild} from 'flipper-pkg-lib';
|
||||
import {getPluginDetails} from 'flipper-plugin-lib';
|
||||
|
||||
async function deriveOutputFileName(inputDirectory: string): Promise<string> {
|
||||
const packageJson = await readJSON(path.join(inputDirectory, 'package.json'));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
import path from 'path';
|
||||
import fs from 'fs-extra';
|
||||
import {getPluginDetails} from 'flipper-pkg-lib';
|
||||
import {getPluginDetails} from 'flipper-plugin-lib';
|
||||
import {kebabCase} from 'lodash';
|
||||
|
||||
export default async function (
|
||||
|
||||
Reference in New Issue
Block a user