Skip to content

Commit

Permalink
Merge pull request #136 from sliit-foss/feature/timekeeper
Browse files Browse the repository at this point in the history
Feature/timekeeper
  • Loading branch information
Akalanka47000 authored Jan 1, 2024
2 parents d575951 + 48fbf88 commit 0e69f29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/timekeeper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "node ../../scripts/esbuild.config.js",
"build:watch": "bash ../../scripts/esbuild.watch.sh",
"bump-version": "bash ../../scripts/bump-version.sh",
"bump-version": "bash ../../scripts/bump-version.sh --name=@sliit-foss/timekeeper",
"lint": "bash ../../scripts/lint.sh",
"release": "bash ../../scripts/release.sh",
"test": "rimraf ./babel.config.js && dotenv -- jest --coverage --verbose --runInBand --forceExit"
Expand Down
6 changes: 3 additions & 3 deletions packages/timekeeper/src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const config = {
plugins: [["@sliit-foss/babel-plugin-transform-trace"]]
};

const outputDir = path.join(__dirname, "..", "out");
const configPath = path.join(__dirname, "..", "babel.config.js");
const outputDir = path.join(__dirname, "..", "out").replace(/\\/g, path.sep);
const configPath = path.join(__dirname, "..", "babel.config.js").replace(/\\/g, path.sep);

const runner = async (p, options) => {
config.plugins[0].push({
Expand All @@ -28,7 +28,7 @@ const runner = async (p, options) => {

console.info(`[Timekeeper] executing...`.green);

await exec(`bash -c "node ${outputDir}/${path.basename(p)}"`).then(({ stdout, stderr }) => {
await exec(`bash -c "node '${outputDir}${path.sep}${path.basename(p)}'"`).then(({ stdout, stderr }) => {
if (stdout) console.log(stdout);
if (stderr) console.error(stderr.red);
});
Expand Down

0 comments on commit 0e69f29

Please sign in to comment.