create-turbo 1.0.24-canary.0 → 1.0.25-canary.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +7 -3
- package/package.json +2 -2
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.
|
34
|
+
var version = "1.0.25-canary.0";
|
35
35
|
var description = "Create a new Turborepo";
|
36
36
|
var homepage = "https://turborepo.org";
|
37
37
|
var license = "MPL-2.0";
|
@@ -68,7 +68,7 @@ var devDependencies = {
|
|
68
68
|
"@types/fs-extra": "^9.0.13",
|
69
69
|
"@types/gradient-string": "^1.1.2",
|
70
70
|
"@types/inquirer": "^7.3.1",
|
71
|
-
"@types/jest": "^27.0
|
71
|
+
"@types/jest": "^27.4.0",
|
72
72
|
"@types/node": "^16.11.12",
|
73
73
|
"@types/semver": "^7.3.9",
|
74
74
|
jest: "^27.4.3",
|
@@ -126,6 +126,10 @@ function shouldUsePnpm() {
|
|
126
126
|
return false;
|
127
127
|
}
|
128
128
|
}
|
129
|
+
function getNpxCommandOfPnpm() {
|
130
|
+
const currentVersion = (0, import_child_process2.execSync)("pnpm --version").toString();
|
131
|
+
return Number(currentVersion.split(".")[0]) >= 6 ? "pnpm dlx" : "pnpx";
|
132
|
+
}
|
129
133
|
|
130
134
|
// src/git.ts
|
131
135
|
var import_child_process3 = __toModule(require("child_process"));
|
@@ -366,7 +370,7 @@ function getNpxCommand(pkgManager) {
|
|
366
370
|
if (pkgManager === "yarn") {
|
367
371
|
return "npx";
|
368
372
|
} else if (pkgManager === "pnpm") {
|
369
|
-
return
|
373
|
+
return getNpxCommandOfPnpm();
|
370
374
|
} else {
|
371
375
|
return "npx";
|
372
376
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "create-turbo",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.25-canary.0",
|
4
4
|
"description": "Create a new Turborepo",
|
5
5
|
"homepage": "https://turborepo.org",
|
6
6
|
"license": "MPL-2.0",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"@types/fs-extra": "^9.0.13",
|
38
38
|
"@types/gradient-string": "^1.1.2",
|
39
39
|
"@types/inquirer": "^7.3.1",
|
40
|
-
"@types/jest": "^27.0
|
40
|
+
"@types/jest": "^27.4.0",
|
41
41
|
"@types/node": "^16.11.12",
|
42
42
|
"@types/semver": "^7.3.9",
|
43
43
|
"jest": "^27.4.3",
|