[client-app] fix hardcoded babelrc path for appveyor

This commit is contained in:
Evan Morikawa 2017-03-03 14:28:59 -08:00
parent 3eb05713df
commit 8e355ba476

View file

@ -15,7 +15,7 @@ require('babel-regenerator-runtime');
// We run babel with lots of different working directories (like plugin folders).
// To make sure presets always resolve to the correct path inside N1, resolve
// them to their absolute paths ahead of time.
const babelPath = path.resolve(path.join(__dirname, "../../.babelrc"))
const babelPath = path.resolve(path.join(__dirname, "..", "..", ".babelrc"))
var defaultOptions = JSON.parse(fs.readFileSync(babelPath));
defaultOptions.presets = (defaultOptions.presets || []).map((modulename) =>
require.resolve(`babel-preset-${modulename}`)