Skip to content

Commit

Permalink
Merge pull request #62 from vikr01/fix/exports
Browse files Browse the repository at this point in the history
Fix exports to match README
  • Loading branch information
orta committed Nov 25, 2018
2 parents ccd9e82 + 013aa02 commit 9f4aeb3
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions src/__tests__/classes.spec.js
@@ -1,5 +1,4 @@
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle static methods ES6 classes", () => {
const ts = `class Observable<T> implements Subscribable<T> {
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/function_exports.spec.js
@@ -1,5 +1,4 @@
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle exported es module functions", () => {
const ts = `export function routerReducer(state?: RouterState, action?: Action): RouterState;
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/global_declares.spec.js
@@ -1,6 +1,5 @@
// @flow
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle declared interfaces", () => {
const ts = `
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/interface_exports.spec.js
@@ -1,6 +1,5 @@
// @flow
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle exported interfaces", () => {
const ts = `export interface UnaryFunction<T, R> {
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/string_literals.spec.js
@@ -1,5 +1,4 @@
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle string literals in function argument \"overloading\"", () => {
const ts = `
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/type_exports.spec.js
@@ -1,6 +1,5 @@
// @flow
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle exported types", () => {
const ts = "export declare type FactoryOrValue<T> = T | (() => T);";
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/union_strings.spec.js
@@ -1,5 +1,4 @@
import compiler from "../cli/compiler";
import beautify from "../cli/beautifier";
import {compiler, beautify} from "..";

it("should handle union strings", () => {
const ts = `
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
@@ -1,6 +1,10 @@
import compiler from "./cli/compiler";
import beautify from "./cli/beautifier";

export {default as compiler} from "./cli/compiler";

export {default as beautify} from "./cli/beautifier";

export default {
beautify,
compiler,
Expand Down

0 comments on commit 9f4aeb3

Please sign in to comment.