Skip to content

Commit

Permalink
🐛 Fix cli path
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Aug 19, 2024
1 parent 61e426e commit d4d89a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-ties-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@konfeature/erpc-config-generator": patch
---

Fix bin path for the cli
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"src/**/*.ts"
],
"bin": {
"erpc-config": "bin/cli/cli.cjs"
"erpc-config": "./dist/cli/index.js"
},
"exports": {
".": {
Expand Down
5 changes: 3 additions & 2 deletions src/cli/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { writeErpcConfig } from "../utils/config";
export async function generate({ print, parameters }: GluegunToolbox) {
const spinner = print.spin({ text: "Generating eRPC config file" });
spinner.start();
print.newline();

// Extract the arguments
const configFile = parameters.options.config ?? "./erpc-config.ts";
Expand All @@ -25,7 +24,8 @@ export async function generate({ print, parameters }: GluegunToolbox) {
}

// Log a few stuff
print.info("Parmaeters:");
print.newline();
print.info("Parameters:");
print.info(` - Configuration file: ${configFile}`);
print.info(` - Output file: ${outputFile}`);

Expand All @@ -34,6 +34,7 @@ export async function generate({ print, parameters }: GluegunToolbox) {
const config = await loadConfigFromFile(configFile);

// Log a few info
print.newline();
print.info("Config:");
print.info(` - Projects: ${config.projects.length}`);
print.info(
Expand Down

0 comments on commit d4d89a5

Please sign in to comment.