Skip to content

Commit acd1c2a

Browse files
authored
feat: add multiple file support (#6)
* feat: add multiple file support Closes #2 BREAKING CHANGE: `pathToSpec` renamed to `pathsToSpec` and it is `string[]` now instead of `string`
1 parent 0b8b6f7 commit acd1c2a

File tree

9 files changed

+431
-271
lines changed

9 files changed

+431
-271
lines changed

package-lock.json

+109-27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
},
3131
"dependencies": {
3232
"@devexperts/utils": "^0.12.6",
33+
"@types/del": "^3.0.1",
3334
"@types/fs-extra": "^5.0.4",
3435
"@types/prettier": "^1.13.2",
36+
"del": "^3.0.0",
3537
"fp-ts": "^1.10.0",
3638
"fs-extra": "^7.0.0",
3739
"io-ts": "^1.2.1",

src/fileReader.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TFileReader } from './index';
2+
3+
export const fromJSON: TFileReader = buffer => JSON.parse(buffer.toString());

0 commit comments

Comments
 (0)