Use library to create temporary files

Summary: Makes the code a bit cleaner and maintainable.

Reviewed By: passy

Differential Revision: D9496316

fbshipit-source-id: a59a41b12a57bb2eedc25b154c6f9b0cdc77dd8a
This commit is contained in:
John Knox
2018-08-28 04:15:16 -07:00
committed by Facebook Github Bot
parent f99ef6996e
commit db1b175d44
2 changed files with 60 additions and 31 deletions

32
flow-typed/npm/tmp_vx.x.x.js vendored Normal file
View File

@@ -0,0 +1,32 @@
// flow-typed signature: 5764ce2922249ed6bf930c177a5582d4
// flow-typed version: <<STUB>>/tmp_v0.0.33/flow_v0.76.0
/**
* This is an autogenerated libdef stub for:
*
* 'tmp'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'tmp' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'tmp/lib/tmp' {
declare module.exports: any;
}
// Filename aliases
declare module 'tmp/lib/tmp.js' {
declare module.exports: $Exports<'tmp/lib/tmp'>;
}