From ef7bf1a319bf94f83151c20004909c813988c4f3 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 5 Apr 2018 20:48:59 -0700 Subject: [PATCH] Use path.join(__dirname, ...) to potentially avoid www/js/player.js issue --- bin/build-player.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/build-player.js b/bin/build-player.js index f44238ef..7729c483 100755 --- a/bin/build-player.js +++ b/bin/build-player.js @@ -30,7 +30,12 @@ var order = [ var buffer = ''; order.forEach(function (file) { - buffer += fs.readFileSync(path.join('player', file)) + '\n'; + buffer += fs.readFileSync( + path.join(__dirname, '..', 'player', file) + ) + '\n'; }); -fs.writeFileSync(path.join('www', 'js', 'player.js'), coffee.compile(buffer)); +fs.writeFileSync( + path.join(__dirname, '..', 'www', 'js', 'player.js'), + coffee.compile(buffer) +);