create-tldraw 5.4.2 → 5.5.0-canary.003bf5951274

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,13 +8,14 @@ A CLI tool for quickly scaffolding a new tldraw project. Inspired by `npm create
8
8
  $ npm create tldraw -- --help
9
9
  Usage: create-tldraw [OPTION]... [DIRECTORY]
10
10
 
11
- Create a new tldraw project.
11
+ Create a new tldraw project from a starter kit.
12
12
  With no arguments, you'll be guided through an interactive setup.
13
+ Pass . as the directory to create the project in the current directory.
13
14
 
14
15
  Options:
15
16
  -h, --help Display this help message.
16
17
  -t, --template NAME Use a specific template.
17
- -o, --overwrite Overwrite the target directory if it exists.
18
+ --no-telemetry Disable anonymous usage tracking.
18
19
 
19
20
  Available starter kits:
20
21
  • basic A minimal tldraw template with Vite, React, and TypeScript.
@@ -25,6 +26,14 @@ Available starter kits:
25
26
  • workflow Visual node-based builder for workflows.
26
27
  ```
27
28
 
29
+ To scaffold into the current directory instead of a new folder, pass `.` as the directory:
30
+
31
+ ```
32
+ $ npm create tldraw@latest .
33
+ ```
34
+
35
+ If the directory already has files in it, you'll be asked whether to keep them, remove them (`.git` is always kept), or cancel.
36
+
28
37
  ## Development
29
38
 
30
39
  Run in development mode with `yarn dev` from this folder.