create-turbo 1.1.4 → 1.1.5-canary.0
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.
- package/dist/index.js +23 -22
- package/package.json +3 -2
package/dist/index.js
CHANGED
@@ -6,32 +6,32 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
8
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
9
|
-
var __reExport = (target, module2, desc) => {
|
9
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
10
10
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
11
11
|
for (let key of __getOwnPropNames(module2))
|
12
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
12
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
13
13
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
14
14
|
}
|
15
15
|
return target;
|
16
16
|
};
|
17
|
-
var
|
18
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
17
|
+
var __toESM = (module2, isNodeMode) => {
|
18
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
19
19
|
};
|
20
20
|
|
21
21
|
// src/index.ts
|
22
|
-
var path2 =
|
23
|
-
var import_execa =
|
24
|
-
var import_fs_extra =
|
25
|
-
var import_inquirer =
|
26
|
-
var import_ora =
|
27
|
-
var import_meow =
|
28
|
-
var import_gradient_string =
|
29
|
-
var import_update_check =
|
30
|
-
var import_chalk =
|
22
|
+
var path2 = __toESM(require("path"));
|
23
|
+
var import_execa = __toESM(require("execa"));
|
24
|
+
var import_fs_extra = __toESM(require("fs-extra"));
|
25
|
+
var import_inquirer = __toESM(require("inquirer"));
|
26
|
+
var import_ora = __toESM(require("ora"));
|
27
|
+
var import_meow = __toESM(require("meow"));
|
28
|
+
var import_gradient_string = __toESM(require("gradient-string"));
|
29
|
+
var import_update_check = __toESM(require("update-check"));
|
30
|
+
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.5-canary.0";
|
35
35
|
var description = "Create a new Turborepo";
|
36
36
|
var homepage = "https://turborepo.org";
|
37
37
|
var license = "MPL-2.0";
|
@@ -71,9 +71,10 @@ var devDependencies = {
|
|
71
71
|
"@types/jest": "^27.4.0",
|
72
72
|
"@types/node": "^16.11.12",
|
73
73
|
"@types/semver": "^7.3.9",
|
74
|
+
eslint: "^7.23.0",
|
74
75
|
jest: "^27.4.3",
|
75
76
|
semver: "^7.3.5",
|
76
|
-
"strip-ansi": "^
|
77
|
+
"strip-ansi": "^6.0.1",
|
77
78
|
"ts-jest": "^27.1.1",
|
78
79
|
tsup: "^5.10.3",
|
79
80
|
typescript: "^4.5.5"
|
@@ -98,7 +99,7 @@ var package_default = {
|
|
98
99
|
};
|
99
100
|
|
100
101
|
// src/shouldUseYarn.ts
|
101
|
-
var import_child_process =
|
102
|
+
var import_child_process = require("child_process");
|
102
103
|
function shouldUseYarn() {
|
103
104
|
try {
|
104
105
|
const userAgent = process.env.npm_config_user_agent;
|
@@ -113,7 +114,7 @@ function shouldUseYarn() {
|
|
113
114
|
}
|
114
115
|
|
115
116
|
// src/shouldUsePnpm.ts
|
116
|
-
var import_child_process2 =
|
117
|
+
var import_child_process2 = require("child_process");
|
117
118
|
function shouldUsePnpm() {
|
118
119
|
try {
|
119
120
|
const userAgent = process.env.npm_config_user_agent;
|
@@ -132,9 +133,9 @@ function getNpxCommandOfPnpm() {
|
|
132
133
|
}
|
133
134
|
|
134
135
|
// src/git.ts
|
135
|
-
var import_child_process3 =
|
136
|
-
var import_path =
|
137
|
-
var import_rimraf =
|
136
|
+
var import_child_process3 = require("child_process");
|
137
|
+
var import_path = __toESM(require("path"));
|
138
|
+
var import_rimraf = __toESM(require("rimraf"));
|
138
139
|
function isInGitRepository() {
|
139
140
|
try {
|
140
141
|
(0, import_child_process3.execSync)("git rev-parse --is-inside-work-tree", { stdio: "ignore" });
|
@@ -178,7 +179,7 @@ function tryGitInit(root) {
|
|
178
179
|
}
|
179
180
|
|
180
181
|
// src/getPackageManagerVersion.ts
|
181
|
-
var import_child_process4 =
|
182
|
+
var import_child_process4 = require("child_process");
|
182
183
|
var getPackageManagerVersion = (ws) => {
|
183
184
|
switch (ws) {
|
184
185
|
case "yarn":
|
@@ -307,7 +308,7 @@ async function run() {
|
|
307
308
|
await import_fs_extra.default.writeFile(path2.join(projectDir, "package.json"), JSON.stringify(appPkg, null, 2));
|
308
309
|
if (flags.install) {
|
309
310
|
console.log();
|
310
|
-
console.log(`>>>
|
311
|
+
console.log(`>>> Creating a new turborepo with the following:`);
|
311
312
|
console.log();
|
312
313
|
console.log(` - ${import_chalk.default.bold("apps/web")}: Next.js with TypeScript`);
|
313
314
|
console.log(` - ${import_chalk.default.bold("apps/docs")}: Next.js with TypeScript`);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "create-turbo",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.5-canary.0",
|
4
4
|
"description": "Create a new Turborepo",
|
5
5
|
"homepage": "https://turborepo.org",
|
6
6
|
"license": "MPL-2.0",
|
@@ -40,9 +40,10 @@
|
|
40
40
|
"@types/jest": "^27.4.0",
|
41
41
|
"@types/node": "^16.11.12",
|
42
42
|
"@types/semver": "^7.3.9",
|
43
|
+
"eslint": "^7.23.0",
|
43
44
|
"jest": "^27.4.3",
|
44
45
|
"semver": "^7.3.5",
|
45
|
-
"strip-ansi": "^
|
46
|
+
"strip-ansi": "^6.0.1",
|
46
47
|
"ts-jest": "^27.1.1",
|
47
48
|
"tsup": "^5.10.3",
|
48
49
|
"typescript": "^4.5.5"
|