From 50ecd8ce863e5996e47abb4fbad5f35e324ccc34 Mon Sep 17 00:00:00 2001 From: jank Date: Thu, 19 Jun 2025 17:06:44 +0200 Subject: [PATCH 1/2] chore: Clean up imports --- index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 80e7876..60f2040 100644 --- a/index.ts +++ b/index.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node -import fs, { readFileSync } from "fs"; +import fs from "fs"; import { confirm, select, input } from "@inquirer/prompts"; import { exit } from "process"; import { @@ -13,10 +13,8 @@ import { } from "./configuration/configuration"; import { execSync } from "child_process"; import { program } from "commander"; -import { dirname, join } from "path"; -import { fileURLToPath } from "bun"; -const packageJson = require("./package.json"); +import packageJson from "./package.json"; export const VERSION = packageJson.version; const CLI_NAME = "pcli"; From 703db757bc11edd233dca293528b0fad85365d5f Mon Sep 17 00:00:00 2001 From: jank Date: Thu, 19 Jun 2025 17:14:15 +0200 Subject: [PATCH 2/2] feat: Add folder execution --- index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 60f2040..72a1ffb 100644 --- a/index.ts +++ b/index.ts @@ -94,7 +94,12 @@ program choices: getProjects().map((project: Project) => project.name), }); - process.chdir(getConfiguration().projectsDirectory + "/" + pickedProject); + console.log( + "__EXEC__ cd " + + getConfiguration().projectsDirectory + + "/" + + pickedProject, + ); console.log(getProjects()); });