deno/cli/tools
Leigh McCulloch 4a8b873111
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
2023-09-12 12:55:26 +02:00
..
bench fix: empty include in config file excludes all (#20404) 2023-09-08 15:04:45 +01:00
coverage fix: exclude internal JS files from coverage (#20448) 2023-09-11 13:53:42 +00:00
init fix(init): skip existing files instead of erroring (#20434) 2023-09-12 12:55:26 +02:00
repl chore: update inner #\![allow] to #[allow] (#20463) 2023-09-11 17:12:33 -06:00
test fix: empty include in config file excludes all (#20404) 2023-09-08 15:04:45 +01:00
vendor feat: support import attributes (#20342) 2023-09-07 09:09:16 -04:00
bundle.rs refactor: use "deno_config" crate (#20260) 2023-08-24 11:21:34 +02:00
check.rs refactor: upgrade deno_ast 0.28 and deno_semver 0.4 (#20193) 2023-08-21 09:53:52 +00:00
compile.rs feat(compile): Add --no-terminal to compile command (#17991) 2023-07-28 18:46:26 +03:00
doc.rs Reland "fix(cli): don't store blob and data urls in the module cache" (#18581) 2023-07-02 00:52:30 +02:00
fmt.rs fix: empty include in config file excludes all (#20404) 2023-09-08 15:04:45 +01:00
info.rs feat: support import attributes (#20342) 2023-09-07 09:09:16 -04:00
installer.rs refactor: use "deno_config" crate (#20260) 2023-08-24 11:21:34 +02:00
lint.rs fix: empty include in config file excludes all (#20404) 2023-09-08 15:04:45 +01:00
mod.rs feat(compile): unstable npm and node specifier support (#19005) 2023-05-10 20:06:59 -04:00
run.rs Reland "fix(cli): don't store blob and data urls in the module cache" (#18581) 2023-07-02 00:52:30 +02:00
task.rs Reland "feat(lsp): enable via config file detection (#20334)" (#20349) 2023-09-01 21:13:13 +01:00
upgrade.rs chore(cli): remove atty crate (#20275) 2023-08-25 07:43:07 -06:00