Skip to content

Commit

Permalink
chore(utils): refactor util types
Browse files Browse the repository at this point in the history
refactor util types
  • Loading branch information
anshumanv committed Jun 5, 2019
1 parent 1b49075 commit e7c5170
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/init/init.ts
Expand Up @@ -7,7 +7,7 @@ import propTypes from "@webpack-cli/utils/prop-types";
import astTransform from "@webpack-cli/utils/recursive-parser";
import runPrettier from "@webpack-cli/utils/run-prettier";

import { Node } from "@webpack-cli/utils/types/NodePath";
import { Node } from "@webpack-cli/utils/types";
import { Error } from "./types";
import { Configuration, WebpackProperties } from "./types/Transform";

Expand Down
2 changes: 1 addition & 1 deletion packages/utils/scaffold.ts
Expand Up @@ -5,7 +5,7 @@ import * as path from "path";
import { findProjectRoot } from "./path-utils";

import { Error } from "./types";
import { Config, TransformConfig } from "./types/Config";
import { Config, TransformConfig } from "./types";
import propTypes from "./prop-types";
import astTransform from "./recursive-parser";
import runPrettier from "./run-prettier";
Expand Down
4 changes: 4 additions & 0 deletions packages/utils/types/Error.ts
@@ -0,0 +1,4 @@
export interface Error {
stack?: string;
message: string;
}
13 changes: 10 additions & 3 deletions packages/utils/types/index.ts
@@ -1,4 +1,11 @@
export interface Error {
stack?: string;
message: string;
import { Error } from './Error';
import { Config, TransformConfig } from './Config';
import { Node, JSCodeshift } from "./NodePath";

export {
Error,
Config,
Node,
TransformConfig,
JSCodeshift,
}

0 comments on commit e7c5170

Please sign in to comment.