Skip to content

Commit

Permalink
fix(fes-cli): 兼容高版本node
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Dec 6, 2020
1 parent dd84cb7 commit 839a933
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/fes-cli/build/tasks/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ function createProject(config, projectName) {
strip: 1,
C: productDir // alias for cwd:'some-dir', also ok
})
);
fs.unlinkSync(filePath);
log.message(`项目 ${projectName} 创建完成,请执行下面的命令进行使用:`);
log.message(`$ cd ${projectName}`);
log.message('$ npm i');
log.message('$ npm run dev');
resolve();
).on('finish', () => {
fs.unlinkSync(filePath);
log.message(`项目 ${projectName} 创建完成,请执行下面的命令进行使用:`);
log.message(`$ cd ${projectName}`);
log.message('$ npm i');
log.message('$ npm run dev');
resolve();
});
});
}

Expand Down

0 comments on commit 839a933

Please sign in to comment.