Skip to content

Commit e6a72fc

Browse files
committed
major bug fix
1 parent 05494f2 commit e6a72fc

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ for (let i = 0; i < args.length; i++) {
276276
}
277277
}
278278

279+
if (!args.length) {
280+
options.condition = "";
281+
options.folderPathOrNameOrLink = "";
282+
}
283+
279284
// Check for unsupported or invalid options
280285
if (Object.values(options).some((value) => value === null)) {
281286
console.error(`Missing required option or invalid usage.`);
@@ -558,7 +563,7 @@ ${chalk.bold.underline.white("Package Commands:")}
558563
```json
559564
{
560565
"name": "@s54a/init",
561-
"version": "4.2.0",
566+
"version": "4.5.0",
562567
"description": "Project Initializer",
563568
"main": "./index.js",
564569
"type": "module",

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ for (let i = 0; i < args.length; i++) {
7777
}
7878
}
7979

80+
if (!args.length) {
81+
options.condition = "";
82+
options.folderPathOrNameOrLink = "";
83+
}
84+
8085
// Check for unsupported or invalid options
8186
if (Object.values(options).some((value) => value === null)) {
8287
console.error(`Missing required option or invalid usage.`);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@s54a/init",
3-
"version": "4.2.0",
3+
"version": "4.5.0",
44
"description": "Project Initializer",
55
"main": "./index.js",
66
"type": "module",

0 commit comments

Comments
 (0)