create-turbo 1.1.7-canary.5 → 1.1.7

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 +16 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_chalk = __toESM(require("chalk"));
31
31
 
32
32
  // package.json
33
33
  var name = "create-turbo";
34
- var version = "1.1.7-canary.5";
34
+ var version = "1.1.7";
35
35
  var description = "Create a new Turborepo";
36
36
  var homepage = "https://turborepo.org";
37
37
  var license = "MPL-2.0";
@@ -201,7 +201,7 @@ var help = `
201
201
 
202
202
  If <dir> is not provided up front you will be prompted for it.
203
203
 
204
- Flags:
204
+ Flags:
205
205
  --use-npm Explicitly tell the CLI to bootstrap the app using npm
206
206
  --use-pnpm Explicitly tell the CLI to bootstrap the app using pnpm
207
207
  --no-install Explicitly do not run the package manager's install command
@@ -322,7 +322,8 @@ async function run() {
322
322
  frames: [" ", "> ", ">> ", ">>>"]
323
323
  }
324
324
  }).start();
325
- await (0, import_execa.default)(`${answers.packageManager}`, [`install`], {
325
+ const npmRegistry = await getNpmRegistry(answers.packageManager);
326
+ await (0, import_execa.default)(`${answers.packageManager}`, [`install`, `--registry=${npmRegistry}`], {
326
327
  stdio: "ignore",
327
328
  cwd: projectDir
328
329
  });
@@ -368,6 +369,18 @@ async function run() {
368
369
  console.log(import_chalk.default.cyan(` ${getNpxCommand(answers.packageManager)} turbo login`));
369
370
  console.log();
370
371
  }
372
+ async function getNpmRegistry(pkgManager) {
373
+ try {
374
+ const { stdout: registry } = await (0, import_execa.default)(pkgManager, [
375
+ "config",
376
+ "get",
377
+ "registry"
378
+ ]);
379
+ return registry;
380
+ } catch (error) {
381
+ return "";
382
+ }
383
+ }
371
384
  var update = (0, import_update_check.default)(package_default).catch(() => null);
372
385
  async function notifyUpdate() {
373
386
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "1.1.7-canary.5",
3
+ "version": "1.1.7",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turborepo.org",
6
6
  "license": "MPL-2.0",