From 718886a077f58741b57dc443c068da5829fc3986 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 12 Feb 2015 13:55:56 -0800 Subject: [PATCH] Pass in full path to root cache dir --- src/6to5.coffee | 2 +- static/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/6to5.coffee b/src/6to5.coffee index 3ceb81480..2aa5d6344 100644 --- a/src/6to5.coffee +++ b/src/6to5.coffee @@ -97,7 +97,7 @@ getCachePath = (sourceCode) -> unless jsCacheDir? to5Version = require('6to5-core/package.json').version - jsCacheDir = path.join(cacheDir, '6to5', create6to5VersionAndOptionsDigest(to5Version, defaultOptions)) + jsCacheDir = path.join(cacheDir, create6to5VersionAndOptionsDigest(to5Version, defaultOptions)) path.join(jsCacheDir, "#{digest}.js") diff --git a/static/index.js b/static/index.js index a58c1170d..fb56a84bd 100644 --- a/static/index.js +++ b/static/index.js @@ -93,7 +93,7 @@ var setupAtomHome = function() { var setup6to5 = function(cacheDir) { var to5 = require('../src/6to5'); - to5.setCacheDirectory(path.join(cacheDir, 'js')); + to5.setCacheDirectory(path.join(cacheDir, 'js', '6to5')); to5.register(); }