diff --git a/junit.xml b/junit.xml index 304ccef7cc6..319cffbd123 100644 --- a/junit.xml +++ b/junit.xml @@ -1,149 +1,199 @@ - - - + + + - + - + - + - + - + - + - + + + - - - + + - - + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - - - + + - - - + + - - - + + - - - + + - - + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + - + + + - + + + - + + + - + + + - + + + - - - + + - - + + - + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -155,403 +205,353 @@ - + - + - - - - - - + + - - + + - + + + - + - + - + - + - - - + - + - + - + - + - + - + - - - + - + - + - + - + + + - + + + - + + + - + + + - + - + - + - - - + - + - + - + - - + + - - + + - - - + - - - + - - + + - - - - - - - - + + - - + + - - + + - - + + - - - + + - - - + - - - + - + - - - + - - - + - - - + - - - + - - - + - - + + - - - + - + - + - + - + - + - + - + - + - - - - + - - + + - - + + + + + + - - + + - + - + - + - + - - + + - - - + - - - + - + - - + + - - - + - - - + - - - + - - - + - - - + - - - + - + - - - + - - + + - - + + - - - + - - - + - - - + - - - + - - + + - + - + - - - + - - + + + + + + - - + + - + - + - + - - + + + - - + + + - - + + - + - + - - - - - - - - + + + - - + + + - - + + + - - - - - - + + + - - + + + - - + + + - - + + - - - + - + - + + + - - + + - + - + - - + + - + - + - - - + - - + + - - - + - - + + - - - + + + + + + + + + \ No newline at end of file diff --git a/packages/utils/defineTest.ts b/packages/utils/defineTest.ts index b5b076cfa4b..a5ee041d26f 100644 --- a/packages/utils/defineTest.ts +++ b/packages/utils/defineTest.ts @@ -1,5 +1,6 @@ import * as fs from "fs"; import * as path from "path"; + import { IJSCodeshift, INode } from "./types/NodePath"; interface IModule { diff --git a/packages/utils/find-root.ts b/packages/utils/find-root.ts index 9e1baf5b1a6..0345da2db62 100644 --- a/packages/utils/find-root.ts +++ b/packages/utils/find-root.ts @@ -1,6 +1,12 @@ import * as findup from "findup-sync"; import * as path from "path"; +/** + * Returns the absolute path of the project directory + * Finds the package.json, by using findup-sync + * @returns {String} path of project directory + */ + export function findProjectRoot(): string { const rootFilePath = findup(`package.json`); const projectRoot = path.dirname(rootFilePath); diff --git a/packages/utils/scaffold.ts b/packages/utils/scaffold.ts index 682f91ae989..a3add9ee769 100644 --- a/packages/utils/scaffold.ts +++ b/packages/utils/scaffold.ts @@ -90,16 +90,16 @@ export default function runTransform(transformConfig: ITransformConfig, action: console.error(err.message ? err.message : err); }); }); - let successMessage : string = `Congratulations! Your new webpack configuration file has been created!\n` + let successMessage: string = `Congratulations! Your new webpack configuration file has been created!\n`; if (initActionNotDefined && transformConfig.config.item) { successMessage = `Congratulations! ${ transformConfig.config.item - } has been ${action}ed!\n` + } has been ${action}ed!\n`; } process.stdout.write( "\n" + chalk.green( - successMessage - ) + successMessage, + ), ); }