aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-14 14:51:51 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-14 14:51:51 -0700
commit4b6d8a152f2d298bfd8333cdc1534eb540ffbb79 (patch)
tree2152607e52f65d55d72886e379e4879f96769889
parente21b9afdf21c1870e790fa2e3adc2061a7fbe7c2 (diff)
downloadbun-4b6d8a152f2d298bfd8333cdc1534eb540ffbb79.tar.gz
bun-4b6d8a152f2d298bfd8333cdc1534eb540ffbb79.tar.zst
bun-4b6d8a152f2d298bfd8333cdc1534eb540ffbb79.zip
Update bun-create.md
-rw-r--r--examples/bun-create.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/bun-create.md b/examples/bun-create.md
index d47ea30d8..c74db89e4 100644
--- a/examples/bun-create.md
+++ b/examples/bun-create.md
@@ -48,14 +48,18 @@ When you run `bun create ${template} ${destination}`, here's what happens:
1. GET `registry.npmjs.org/@bun-examples/${template}/latest` and parse it
2. GET `registry.npmjs.org/@bun-examples/${template}/-/${template}-${latestVersion}.tgz`
3. Decompress & extract `${template}-${latestVersion}.tgz` into `${destination}`
- 3a. If there are files that would overwrite, warn and exit unless `--force` is passed
+
+ - If there are files that would overwrite, warn and exit unless `--force` is passed
+
4. Parse the `package.json` (again!), update `name` to be `${basename(destination)}`, remove the `bun-create` section from the `package.json` and save updated `package.json` to disk
5. Auto-detect the npm client, preferring `pnpm`, `yarn` (v1), and lastly `npm`
6. Run any tasks defined in `"bun-create": { "preinstall" }` with the npm client
7. Run `${npmClient} install`
8. Run any tasks defined in `"bun-create": { "preinstall" }` with the npm client
9. Run `git init; git add -A .; git commit -am "Initial Commit";`.
- 8a. Rename `gitignore` to `.gitignore`. NPM automatically removes `.gitignore` files from appearing in packages.
+
+ - Rename `gitignore` to `.gitignore`. NPM automatically removes `.gitignore` files from appearing in packages.
+
10. Done
`../misctools/publish-examples.js` publishes all examples to npm.