From dee9cccae77fb4e37ddc5c69fadea2e10f0c6234 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 21 Oct 2014 09:00:50 -0700 Subject: [PATCH] Use proper relative paths in cache --- build/tasks/compile-packages-slug-task.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/tasks/compile-packages-slug-task.coffee b/build/tasks/compile-packages-slug-task.coffee index 17f94c740..59d336864 100644 --- a/build/tasks/compile-packages-slug-task.coffee +++ b/build/tasks/compile-packages-slug-task.coffee @@ -20,12 +20,12 @@ module.exports = (grunt) -> pack = {metadata, keymaps: {}, menus: {}} for keymapPath in fs.listSync(path.join(moduleDirectory, 'keymaps'), ['.cson', '.json']) - keymapPath = path.relative(appDir, keymapPath) - pack.keymaps[keymapPath] = CSON.readFileSync(keymapPath) + relativePath = path.relative(appDir, keymapPath) + pack.keymaps[relativePath] = CSON.readFileSync(keymapPath) for menuPath in fs.listSync(path.join(moduleDirectory, 'menus'), ['.cson', '.json']) - menuPath = path.relative(appDir, menuPath) - pack.menus[menuPath] = CSON.readFileSync(menuPath) + relativePath = path.relative(appDir, menuPath) + pack.menus[relativePath] = CSON.readFileSync(menuPath) packages[metadata.name] = pack