这是indexloc提供的服务,不要输入任何密码
Skip to content

Support yarn not installed in create-turbo #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion create-turbo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ async function run() {
).dir
);

const isYarnInstalled = shouldUseYarn();
let answers = await inquirer.prompt<{
packageManager: "yarn" | "npm";
install: boolean;
Expand All @@ -88,7 +89,11 @@ async function run() {
type: "list",
message: "Which package manager do you want to use?",
choices: [
{ name: "Yarn", value: "yarn" },
{
name: "Yarn",
value: "yarn",
disabled: !isYarnInstalled && "not installed",
},
{ name: "NPM", value: "npm" },
// { name: "PNPM", value: "pnpm" },
],
Expand Down