From 2f54282ac005506d774899da5e82d9749f526db1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 2 Jun 2017 21:47:58 -0400 Subject: [PATCH] remove temporary file --- rename.js | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 rename.js diff --git a/rename.js b/rename.js deleted file mode 100644 index ad3804e39d..0000000000 --- a/rename.js +++ /dev/null @@ -1,9 +0,0 @@ -const glob = require( 'glob' ); -const fs = require( 'fs' ); - -glob.sync( 'src/**/*.js' ).forEach( file => { - console.log( file ); - const js = fs.readFileSync( file, 'utf-8' ); - fs.writeFileSync( file.replace( /\.js$/, '.ts' ), js ); - fs.unlinkSync( file ); -}); \ No newline at end of file