remove temporary file

pull/618/head
Rich Harris 8 years ago
parent f016a84d45
commit 2f54282ac0

@ -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 );
});
Loading…
Cancel
Save