From 99a8d4b0970585e738b43a9f8af4c1b3c312608b Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 1 Jan 2024 19:46:44 +0530 Subject: [PATCH] Fix: babel config file path in command --- packages/timekeeper/src/runner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/timekeeper/src/runner.js b/packages/timekeeper/src/runner.js index ab44cc8..043dc57 100644 --- a/packages/timekeeper/src/runner.js +++ b/packages/timekeeper/src/runner.js @@ -21,7 +21,9 @@ const runner = async (p, options) => { console.info(`[Timekeeper] transpiling...`.green); - await exec(`npx babel ${p} --out-dir ./out --copy-files --config-file=./babel.config.js`); + await exec( + `npx babel ${p} --out-dir ./out --copy-files --config-file=${path.join(__dirname, "..", "babel.config.js")}` + ); console.info(`[Timekeeper] executing...`.green);