Skip to content

Commit

Permalink
Merge pull request #7 from Rich-Harris/btd/buble-patch-1
Browse files Browse the repository at this point in the history
path module at node v7 required path arguments to be strings
  • Loading branch information
Rich-Harris authored Sep 23, 2017
2 parents a56c008 + e7044f6 commit 406d4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion register.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function mkdirp ( dir ) {

var home = homedir();
if ( home ) {
var cachedir = path.join( home, '.buble-cache', nodeVersion );
var cachedir = path.join( home, '.buble-cache', String(nodeVersion) );
mkdirp( cachedir );
fs.writeFileSync( path.join( home, '.buble-cache/README.txt' ), 'These files enable a faster startup when using buble/register. You can safely delete this folder at any time. See https://buble.surge.sh/guide/ for more information.' );
}
Expand Down

0 comments on commit 406d4a4

Please sign in to comment.