Skip to content

Commit b0e6643

Browse files
committed
Update README.md with pnpm command and fix optional chaining in rebrand.js
1 parent 6e03a4c commit b0e6643

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ To get started, simply click on the `"Use this template"` button to create a new
6666

6767
For detailed instructions and a checklist, please refer to [TODO.md](./TODO.md).
6868

69+
> You can also start by running `pnpm dlx create-turbo@latest --example https://github.com/react18-tools/turborepo-template/` in command line interface.
70+
6971
## What's Different from Turborepo official templates?
7072

7173
Compared to the default scaffold from create-turbo, this template offers:

scripts/rebrand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const [owner, repo] = execSync(
1313
)
1414
.toString()
1515
.trim()
16-
.split("/");
16+
?.split("/") ?? ["", path.basename(path.cwd())];
1717

1818
const packageName = isFirstRebrand ? repo : config.packageName || repo;
1919

0 commit comments

Comments
 (0)