From 6c114778ac9dad9d085b6a72f38262ea151be65b Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Sat, 27 Jul 2024 22:46:17 +0530 Subject: [PATCH] Patch(timekeeper): updated dependencies --- packages/timekeeper/package.json | 6 +++--- packages/timekeeper/src/runner.js | 12 ++++++------ pnpm-lock.yaml | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/packages/timekeeper/package.json b/packages/timekeeper/package.json index b5db917..5b95a21 100644 --- a/packages/timekeeper/package.json +++ b/packages/timekeeper/package.json @@ -3,9 +3,7 @@ "version": "0.0.8-blizzard.4", "description": "CLI tool for automated function tracing", "main": "dist/index.js", - "bin": { - "timekeeper": "dist/index.js" - }, + "bin": "dist/index.js", "scripts": { "build": "node ../../scripts/esbuild.config.js", "build:watch": "bash ../../scripts/esbuild.watch.sh", @@ -16,6 +14,8 @@ }, "dependencies": { "@colors/colors": "1.5.0", + "@sliit-foss/babel-plugin-transform-trace": "0.3.0", + "@sliit-foss/functions": "2.7.0", "commander": "11.1.0" }, "author": "SLIIT FOSS", diff --git a/packages/timekeeper/src/runner.js b/packages/timekeeper/src/runner.js index 0c9fd84..c6da86f 100644 --- a/packages/timekeeper/src/runner.js +++ b/packages/timekeeper/src/runner.js @@ -19,12 +19,12 @@ 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 -p @sliit-foss/babel-plugin-transform-trace@0.3.0 -p @sliit-foss/functions@2.7.0 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}`).then( + ({ stdout, stderr }) => { + if (stdout) console.log(stdout); + if (stderr) console.error(stderr.red); + } + ); }; export default runner; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76d3c21..44d0b68 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -180,6 +180,12 @@ importers: "@colors/colors": specifier: 1.5.0 version: 1.5.0 + "@sliit-foss/babel-plugin-transform-trace": + specifier: 0.3.0 + version: 0.3.0(@babel/core@7.24.7)(@sliit-foss/functions@2.7.0) + "@sliit-foss/functions": + specifier: 2.7.0 + version: 2.7.0 commander: specifier: 11.1.0 version: 11.1.0 @@ -1710,6 +1716,13 @@ packages: resolution: { integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== } + "@sliit-foss/babel-plugin-transform-trace@0.3.0": + resolution: + { integrity: sha512-nJhtwmG+uI7Y0r6n+tU4GoQBED8uu7jXXjqCbjDVKJRm49ELSC4TxN+vkJ1o+zHBEiPn8yl6rm2LgT9wXufrtQ== } + peerDependencies: + "@babel/core": ^7.0.0-0 + "@sliit-foss/functions": 2.7.0 + "@sliit-foss/functions@2.7.0": resolution: { integrity: sha512-xL2XMTQQgDnObC3NSgzt9HPmd5GlJFVHm9SLxi/2rFJoYWzYOwLdEbw5Ssyn0WSL/N+PxFYG49DUDESt9aYyzQ== } @@ -7256,6 +7269,13 @@ snapshots: dependencies: "@sinonjs/commons": 3.0.1 + "@sliit-foss/babel-plugin-transform-trace@0.3.0(@babel/core@7.24.7)(@sliit-foss/functions@2.7.0)": + dependencies: + "@babel/core": 7.24.7 + "@babel/helper-plugin-utils": 7.21.5 + "@babel/template": 7.20.7 + "@sliit-foss/functions": 2.7.0 + "@sliit-foss/functions@2.7.0": dependencies: "@sliit-foss/module-logger": 1.3.0