Skip to content

Commit

Permalink
refactor: move index.ts at root source
Browse files Browse the repository at this point in the history
  • Loading branch information
franck-romano committed Aug 19, 2022
1 parent a8ebbff commit c9df389
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { MiddlewareBuilder } from './src/MiddlewareBuilder';
export { Middleware } from './src/types/Middleware';
export { Middlewares } from './src/types/Middlewares';
export { Next } from './src/types/Next';
4 changes: 0 additions & 4 deletions src/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tests/MiddlewareBuilder.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import t from 'tap';
import * as assert from 'assert';
import { MiddlewareBuilder } from '../src';
import { MiddlewareBuilder } from '../index';
import { NextCalledMoreThanOnceError } from '../src/NextCalledMoreThanOnceError';

t.mochaGlobals();
Expand Down
9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
"es6"
],
"rootDir": ".",
"esModuleInterop": true,
"outDir": "build",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"declaration": true
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"tests"
"index.ts"
]
}

0 comments on commit c9df389

Please sign in to comment.