Skip to content

Commit

Permalink
fix: plugin command
Browse files Browse the repository at this point in the history
  • Loading branch information
innerdvations committed May 13, 2024
1 parent 8891da5 commit 08e297d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/strapi-plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
const { runCLI } = require('../dist/cli');

runCLI(process.argv);
runCLI(process.argv);
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
},
"./package.json": "./package.json"
},
"bin": "./bin/strapi-plugin.js",
"bin": {
"strapi-plugin": "./bin/strapi-plugin.js"
},
"files": [
"bin",
"dist"
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const runAction =
const { logger } = ctx;
Promise.resolve()
.then(() => {
return action(...args);
return action(...args, ctx);
})
.catch((error) => {
logger.error(error);
Expand Down

0 comments on commit 08e297d

Please sign in to comment.