-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide experimental Flow and TypeScript type definitions
- Loading branch information
1 parent
e54e7a8
commit d114088
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const DIST_PATH = path.join(__dirname, '../dist'); | ||
const DEFS_PATH = path.join(__dirname, '../typedefs'); | ||
|
||
const flow = fs.readFileSync(path.join(DEFS_PATH, 't8on.js.flow'), 'utf-8'); | ||
const ts = fs.readFileSync(path.join(DEFS_PATH, 't8on.d.ts'), 'utf-8'); | ||
|
||
fs.writeFileSync(path.join(DIST_PATH, 't8on.js.flow'), flow, 'utf-8'); | ||
fs.writeFileSync(path.join(DIST_PATH, 't8on.d.ts'), ts, 'utf-8'); |