Skip to content

Commit

Permalink
fix(react-comp): 文件创建变量获取
Browse files Browse the repository at this point in the history
  • Loading branch information
StreakingMan committed Mar 2, 2022
1 parent e1ba600 commit 59179b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/react-comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const reactComp = async () => {
},
]);

execSync(`touch ${name}`);
execSync(`cd ${name}`);
execSync(`touch ${compName}`);
execSync(`cd ${compName}`);
fileGenerator({
templateName: 'reactCompIndex',
option: { compName },
Expand Down

0 comments on commit 59179b0

Please sign in to comment.