arco-design / arco-cli

CLI tool for Arco Design
https://arco.design/docs/material/guide
MIT License
203 stars 76 forks source link

fix: copy command invalid if target path does not exist #16

Closed shanejix closed 2 years ago

shanejix commented 2 years ago

Types of changes

Background and context

copy command invalid if target path does not exist in win10

Solution

  if(!isTargetPathExists){
    await mkdirp(target);
  }

How is the change tested?

Changelog

Changelog(CN) Changelog(EN) Related issues

Checklist:

Other information