Skip to content

Commit a327717

Browse files
authored
Fix a bug (#11)
1 parent aaab843 commit a327717

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

commands/setup_theme.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function downloadFile(url, outputPath) {
3737
});
3838
}
3939

40-
export default async function setup_theme(themeName) {
40+
async function setup_theme(themeName) {
4141
try {
4242
// Check if theme name is in kebab-case
4343
if (!isKebabCase(themeName)) {
@@ -117,3 +117,5 @@ export default async function setup_theme(themeName) {
117117
console.error(chalk.orange(`Error setting up theme: ${error.message}`));
118118
}
119119
}
120+
121+
export default setup_theme;

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import copy_existing_block from './commands/copy_existing_block.js';
1313
program.command('list').description(help.list).action(list_created_blocks);
1414

1515
program
16-
.command('new theme <theme-name>')
16+
.command('theme <theme-name>')
1717
.description(
1818
'Download and set up a new theme from the latest theme-redone release'
1919
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webredone/trb-cli",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a Theme Redone WordPress theme",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)