Skip to content

Commit

Permalink
Merge pull request #924 from anshumanv/fix/util-types
Browse files Browse the repository at this point in the history
[utils]: refactor export types to index file
  • Loading branch information
evenstensberg committed Jun 5, 2019
2 parents eda3345 + 43040fe commit 6b50c96
Show file tree
Hide file tree
Showing 4 changed files with 17 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;
}
14 changes: 11 additions & 3 deletions packages/utils/types/index.ts
@@ -1,4 +1,12 @@
export interface Error {
stack?: string;
message: string;
import { Error } from './Error';
import { Config, TransformConfig } from './Config';
import { Node, JSCodeshift, valueType } from "./NodePath";

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

0 comments on commit 6b50c96

Please sign in to comment.