create-turbo 1.1.7-canary.5 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +16 -3
- 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.
|
34
|
+
var version = "1.1.9";
|
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 (
|
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 {
|