Skip to content

Commit

Permalink
Patch(timekeeper): updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Jul 27, 2024
1 parent 31bf58e commit 0ba18b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/timekeeper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@babel/preset-env": "7.25.0",
"@colors/colors": "1.5.0",
"@sliit-foss/actions-exec-wrapper": "1.1.2",
"@sliit-foss/babel-plugin-transform-trace": "0.3.0",
"@sliit-foss/functions": "2.7.0",
"commander": "11.1.0"
Expand Down
11 changes: 2 additions & 9 deletions packages/timekeeper/src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import { default as fs } from "fs";
import { default as path } from "path";
import { default as util } from "util";

const exec = util.promisify(require("child_process").exec);
import { default as exec } from "@sliit-foss/actions-exec-wrapper";

const config = {
presets: ["@babel/preset-env"],
Expand All @@ -19,12 +17,7 @@ const runner = async (p, options) => {
"clean": options.clean ?? false
});
fs.writeFileSync(configPath, `module.exports = ${JSON.stringify(config)}`);
await exec(`npx -p @babel/core@7 -p @babel/node@7 babel-node --config-file=${configPath} ${p}`).then(
({ stdout, stderr }) => {
if (stdout) console.log(stdout);
if (stderr) console.error(stderr.red);
}
);
await exec(`npx -p @babel/core@7 -p @babel/node@7 babel-node --config-file=${configPath} ${p}`);
};

export default runner;
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ba18b6

Please sign in to comment.