Skip to content

Commit

Permalink
feat: add multiple file support (#6)
Browse files Browse the repository at this point in the history
* feat: add multiple file support

Closes #2

BREAKING CHANGE: `pathToSpec` renamed to `pathsToSpec` and it is `string[]` now instead of `string`
  • Loading branch information
scink authored Dec 13, 2018
1 parent 0b8b6f7 commit acd1c2a
Show file tree
Hide file tree
Showing 9 changed files with 431 additions and 271 deletions.
136 changes: 109 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
},
"dependencies": {
"@devexperts/utils": "^0.12.6",
"@types/del": "^3.0.1",
"@types/fs-extra": "^5.0.4",
"@types/prettier": "^1.13.2",
"del": "^3.0.0",
"fp-ts": "^1.10.0",
"fs-extra": "^7.0.0",
"io-ts": "^1.2.1",
Expand Down
3 changes: 3 additions & 0 deletions src/fileReader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { TFileReader } from './index';

export const fromJSON: TFileReader = buffer => JSON.parse(buffer.toString());
Loading

0 comments on commit acd1c2a

Please sign in to comment.