diff --git a/packages/timekeeper/src/runner.js b/packages/timekeeper/src/runner.js index 94be56c..bd02708 100644 --- a/packages/timekeeper/src/runner.js +++ b/packages/timekeeper/src/runner.js @@ -21,7 +21,12 @@ const runner = async (p, options) => { console.info(`[Timekeeper] transpiling...`.green); - await exec(`bash -c "node_modules/.bin/babel ${p} --out-dir ./out --copy-files --config-file=./babel.config.js"`); + await exec( + `bash -c "'${path.resolve( + __dirname, + "../node_modules/.bin/babel" + )}' ${p} --out-dir ./out --copy-files --config-file=./babel.config.js"` + ); console.info(`[Timekeeper] executing...`.green);