Skip to content

Commit 22c322e

Browse files
committed
[Enahcne] Modify the absolut path variable
1 parent a69dfe6 commit 22c322e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const page = () => {
3434
.command("page <fileName> <filePath>")
3535
.description("Generate page(screen) component.")
3636
.action(async (fileName, filePath) => {
37-
const absolutePath = path.resolve(filePath) + `/${fileName}.tsx`
37+
const absolutePath = `${path.resolve(filePath)}/${fileName}.tsx`
3838
const spinner = ora("Creating page component...")
3939
spinner.start()
4040
if (isExistFile(absolutePath, spinner)) {

0 commit comments

Comments
 (0)