create-turbo 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_chalk = __toModule(require("chalk"));
31
31
 
32
32
  // package.json
33
33
  var name = "create-turbo";
34
- var version = "1.0.9";
34
+ var version = "1.0.10";
35
35
  var description = "Create a new Turborepo";
36
36
  var homepage = "https://turborepo.org";
37
37
  var license = "MPL-2.0";
@@ -207,13 +207,18 @@ async function run() {
207
207
  default: "./my-turborepo"
208
208
  }
209
209
  ])).dir);
210
+ const isYarnInstalled = shouldUseYarn();
210
211
  let answers = await import_inquirer.default.prompt([
211
212
  {
212
213
  name: "packageManager",
213
214
  type: "list",
214
215
  message: "Which package manager do you want to use?",
215
216
  choices: [
216
- { name: "Yarn", value: "yarn" },
217
+ {
218
+ name: "Yarn",
219
+ value: "yarn",
220
+ disabled: !isYarnInstalled && "not installed"
221
+ },
217
222
  { name: "NPM", value: "npm" }
218
223
  ]
219
224
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turborepo.org",
6
6
  "license": "MPL-2.0",