From 1f0d3aa030d462b7f1df1646b7b4431a8ef43d2c Mon Sep 17 00:00:00 2001 From: jank Date: Thu, 19 Jun 2025 16:56:50 +0200 Subject: [PATCH 1/8] fix: Fix wrong config --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 5591069..090ce46 100644 --- a/index.ts +++ b/index.ts @@ -20,7 +20,7 @@ program .name("project-cli") .description("A cli for managing projects") .action(async () => { - if (!fs.existsSync(configPath + "config.toml")) { + if (!fs.existsSync(configPath + "config.json")) { const createConfig = await confirm({ message: "No cofig has been found. Would you like to generate a new one?", From deb4eabbce037ce59fd2852be9324f5483494d0d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 19 Jun 2025 14:57:39 +0000 Subject: [PATCH 2/8] chore(release): 0.3.3 [skip ci] ## [0.3.3](https://git.kjan.de/jank/project-cli/compare/v0.3.2...v0.3.3) (2025-06-19) ### Bug Fixes * Fix wrong config ([1f0d3aa](https://git.kjan.de/jank/project-cli/commit/1f0d3aa030d462b7f1df1646b7b4431a8ef43d2c)) --- CHANGELOG.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58c04ce..ff52f9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [0.3.3](https://git.kjan.de/jank/project-cli/compare/v0.3.2...v0.3.3) (2025-06-19) + +### Bug Fixes + +* Fix wrong config ([1f0d3aa](https://git.kjan.de/jank/project-cli/commit/1f0d3aa030d462b7f1df1646b7b4431a8ef43d2c)) + ## [0.3.2](https://git.kjan.de/jank/project-cli/compare/v0.3.1...v0.3.2) (2025-06-19) ### Bug Fixes diff --git a/package-lock.json b/package-lock.json index 268b779..b681fda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "proj-cli", - "version": "0.3.2", + "version": "0.3.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "proj-cli", - "version": "0.3.2", + "version": "0.3.3", "dependencies": { "@saithodev/semantic-release-gitea": "^2.1.0", "@semantic-release/changelog": "^6.0.3", diff --git a/package.json b/package.json index a294802..9ffe94c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "proj-cli", - "version": "0.3.2", + "version": "0.3.3", "module": "index.ts", "type": "module", "bin": { From 50ecd8ce863e5996e47abb4fbad5f35e324ccc34 Mon Sep 17 00:00:00 2001 From: jank Date: Thu, 19 Jun 2025 17:06:44 +0200 Subject: [PATCH 3/8] 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 4/8] 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()); }); From de3f5e697c8170888180e606991d1aaa9c6c3738 Mon Sep 17 00:00:00 2001 From: jank Date: Thu, 19 Jun 2025 17:20:17 +0200 Subject: [PATCH 5/8] fix: fix init script --- index.ts | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/index.ts b/index.ts index 72a1ffb..a8204a8 100644 --- a/index.ts +++ b/index.ts @@ -106,22 +106,13 @@ program program.command("init").action(() => { console.log(`${CLI_NAME}() { - local output - output=$(command ${CLI_NAME} "$@") - local exit_code=$? - - if [ $exit_code -eq 0 ]; then - echo "$output" | while IFS= read -r line; do - if [[ $line == __EXEC__* ]]; then - eval "\${line#__EXEC__}" - else - echo "$line" - fi - done - else - echo "$output" >&2 - return $exit_code - fi + command ${CLI_NAME} "$@" | while IFS= read -r line; do + if [[ $line == __EXEC__* ]]; then + eval "\${line#__EXEC__}" + else + echo "$line" + fi + done }`); }); From c44822ffa35941df30432ab28e587f70409a8443 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 20 Jun 2025 03:04:30 +0000 Subject: [PATCH 6/8] chore(deps): lock file maintenance --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b681fda..93df422 100644 --- a/package-lock.json +++ b/package-lock.json @@ -636,9 +636,9 @@ } }, "node_modules/@octokit/request": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.2.tgz", - "integrity": "sha512-iYj4SJG/2bbhh+iIpFmG5u49DtJ4lipQ+aPakjL9OKpsGY93wM8w06gvFbEQxcMsZcCvk5th5KkIm2m8o14aWA==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.3.tgz", + "integrity": "sha512-V6jhKokg35vk098iBqp2FBKunk3kMTXlmq+PtbV9Gl3TfskWlebSofU9uunVKhUN7xl+0+i5vt0TGTG8/p/7HA==", "license": "MIT", "dependencies": { "@octokit/endpoint": "^11.0.0", From 70388975942a16c1002104d59fc859f11e473c6d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 22 Jun 2025 00:04:24 +0000 Subject: [PATCH 7/8] chore(deps): lock file maintenance --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 93df422..ee7b233 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1398,13 +1398,13 @@ } }, "node_modules/@types/bun": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.2.16.tgz", - "integrity": "sha512-1aCZJ/6nSiViw339RsaNhkNoEloLaPzZhxMOYEa7OzRzO41IGg5n/7I43/ZIAW/c+Q6cT12Vf7fOZOoVIzb5BQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.2.17.tgz", + "integrity": "sha512-l/BYs/JYt+cXA/0+wUhulYJB6a6p//GTPiJ7nV+QHa8iiId4HZmnu/3J/SowP5g0rTiERY2kfGKXEK5Ehltx4Q==", "dev": true, "license": "MIT", "dependencies": { - "bun-types": "1.2.16" + "bun-types": "1.2.17" } }, "node_modules/@types/cacheable-request": { @@ -1669,9 +1669,9 @@ } }, "node_modules/bun-types": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.16.tgz", - "integrity": "sha512-ciXLrHV4PXax9vHvUrkvun9VPVGOVwbbbBF/Ev1cXz12lyEZMoJpIJABOfPcN9gDJRaiKF9MVbSygLg4NXu3/A==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", + "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", "dev": true, "license": "MIT", "dependencies": { From 37b8a37d5f8461392e153ead326416ac287e5e94 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 25 Jun 2025 00:05:20 +0000 Subject: [PATCH 8/8] chore(deps): lock file maintenance --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ee7b233..95df8c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1481,9 +1481,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "24.0.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.3.tgz", - "integrity": "sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==", + "version": "24.0.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.4.tgz", + "integrity": "sha512-ulyqAkrhnuNq9pB76DRBTkcS6YsmDALy6Ua63V8OhrOBgbcYt6IOdzpw5P1+dyRIyMerzLkeYWBeOXPpA9GMAA==", "license": "MIT", "dependencies": { "undici-types": "~7.8.0"