diff options
author | Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> | 2023-09-12 03:55:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 12:55:26 +0200 |
commit | 4a8b873111dbedde34b9bca702fb0b593fbf09a8 (patch) | |
tree | a33b88609f749e3dd62af244864d69aec1d2c07b /cli/tsc/99_main_compiler.js | |
parent | f32acb945e4f96b540c61705eb0d786fc4389d60 (diff) |
fix(init): skip existing files instead of erroring (#20434)
### What
Skip writing files from the template if the files already exist in the
project directory.
### Why
When I run deno init in a directory that already has a main.ts, or one
of the other template files, I usually want to initialize a workspace
around a file I've started working in. A hard error in this case seems
counter productive. An informational message about what's being skipped
seems sufficient.
Close #20433
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
0 files changed, 0 insertions, 0 deletions