create-turbo 1.3.2-canary.0 → 1.3.2-canary.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +65 -90
- package/package.json +1 -1
- package/templates/_shared_ts/apps/docs/package.json +1 -1
- package/templates/_shared_ts/apps/web/package.json +1 -1
- package/templates/_shared_ts/packages/tsconfig/react-library.json +2 -2
- package/templates/_shared_ts/turbo.json +1 -0
- package/templates/npm/turbo.json +1 -0
- package/templates/pnpm/apps/docs/package.json +1 -1
- package/templates/pnpm/apps/web/package.json +1 -1
- package/templates/pnpm/turbo.json +1 -0
- package/templates/yarn/turbo.json +1 -0
package/dist/index.js
CHANGED
@@ -1,36 +1,20 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
+
"use strict";
|
2
3
|
var __create = Object.create;
|
3
4
|
var __defProp = Object.defineProperty;
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
-
var
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
15
|
-
if (__getOwnPropSymbols)
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
17
|
-
if (__propIsEnum.call(b, prop))
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
19
|
-
}
|
20
|
-
return a;
|
21
|
-
};
|
22
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
23
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
24
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
25
|
-
for (let key of __getOwnPropNames(module2))
|
26
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
27
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
28
14
|
}
|
29
|
-
return
|
30
|
-
};
|
31
|
-
var __toESM = (module2, isNodeMode) => {
|
32
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
15
|
+
return to;
|
33
16
|
};
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
34
18
|
|
35
19
|
// src/index.ts
|
36
20
|
var path2 = __toESM(require("path"));
|
@@ -45,72 +29,60 @@ var import_update_check = __toESM(require("update-check"));
|
|
45
29
|
var import_chalk = __toESM(require("chalk"));
|
46
30
|
|
47
31
|
// package.json
|
48
|
-
var name = "create-turbo";
|
49
|
-
var version = "1.3.2-canary.0";
|
50
|
-
var description = "Create a new Turborepo";
|
51
|
-
var homepage = "https://turborepo.org";
|
52
|
-
var license = "MPL-2.0";
|
53
|
-
var repository = {
|
54
|
-
type: "git",
|
55
|
-
url: "https://github.com/vercel/turborepo",
|
56
|
-
directory: "create-turbo"
|
57
|
-
};
|
58
|
-
var bugs = {
|
59
|
-
url: "https://github.com/vercel/turborepo/issues"
|
60
|
-
};
|
61
|
-
var bin = {
|
62
|
-
"create-turbo": "dist/index.js"
|
63
|
-
};
|
64
|
-
var scripts = {
|
65
|
-
build: "tsup src/index.ts --format cjs",
|
66
|
-
test: "jest",
|
67
|
-
lint: "eslint src/**/*.ts"
|
68
|
-
};
|
69
|
-
var dependencies = {
|
70
|
-
chalk: "2.4.2",
|
71
|
-
execa: "5.0.0",
|
72
|
-
"fs-extra": "^10.0.0",
|
73
|
-
"gradient-string": "^2.0.0",
|
74
|
-
inquirer: "^8.0.0",
|
75
|
-
meow: "^7.1.1",
|
76
|
-
ora: "4.0.4",
|
77
|
-
rimraf: "^3.0.2",
|
78
|
-
semver: "^7.3.5",
|
79
|
-
"update-check": "^1.5.4"
|
80
|
-
};
|
81
|
-
var devDependencies = {
|
82
|
-
"@types/chalk-animation": "^1.6.0",
|
83
|
-
"@types/fs-extra": "^9.0.13",
|
84
|
-
"@types/gradient-string": "^1.1.2",
|
85
|
-
"@types/inquirer": "^7.3.1",
|
86
|
-
"@types/jest": "^27.4.0",
|
87
|
-
"@types/node": "^16.11.12",
|
88
|
-
"@types/semver": "^7.3.9",
|
89
|
-
eslint: "^7.23.0",
|
90
|
-
jest: "^27.4.3",
|
91
|
-
semver: "^7.3.5",
|
92
|
-
"strip-ansi": "^6.0.1",
|
93
|
-
"ts-jest": "^27.1.1",
|
94
|
-
tsup: "^5.10.3",
|
95
|
-
typescript: "^4.5.5"
|
96
|
-
};
|
97
|
-
var files = [
|
98
|
-
"dist",
|
99
|
-
"templates"
|
100
|
-
];
|
101
32
|
var package_default = {
|
102
|
-
name,
|
103
|
-
version,
|
104
|
-
description,
|
105
|
-
homepage,
|
106
|
-
license,
|
107
|
-
repository
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
33
|
+
name: "create-turbo",
|
34
|
+
version: "1.3.2-canary.3",
|
35
|
+
description: "Create a new Turborepo",
|
36
|
+
homepage: "https://turborepo.org",
|
37
|
+
license: "MPL-2.0",
|
38
|
+
repository: {
|
39
|
+
type: "git",
|
40
|
+
url: "https://github.com/vercel/turborepo",
|
41
|
+
directory: "create-turbo"
|
42
|
+
},
|
43
|
+
bugs: {
|
44
|
+
url: "https://github.com/vercel/turborepo/issues"
|
45
|
+
},
|
46
|
+
bin: {
|
47
|
+
"create-turbo": "dist/index.js"
|
48
|
+
},
|
49
|
+
scripts: {
|
50
|
+
build: "tsup src/index.ts --format cjs",
|
51
|
+
test: "jest",
|
52
|
+
lint: "eslint src/**/*.ts"
|
53
|
+
},
|
54
|
+
dependencies: {
|
55
|
+
chalk: "2.4.2",
|
56
|
+
execa: "5.0.0",
|
57
|
+
"fs-extra": "^10.0.0",
|
58
|
+
"gradient-string": "^2.0.0",
|
59
|
+
inquirer: "^8.0.0",
|
60
|
+
meow: "^7.1.1",
|
61
|
+
ora: "4.0.4",
|
62
|
+
rimraf: "^3.0.2",
|
63
|
+
semver: "^7.3.5",
|
64
|
+
"update-check": "^1.5.4"
|
65
|
+
},
|
66
|
+
devDependencies: {
|
67
|
+
"@types/chalk-animation": "^1.6.0",
|
68
|
+
"@types/fs-extra": "^9.0.13",
|
69
|
+
"@types/gradient-string": "^1.1.2",
|
70
|
+
"@types/inquirer": "^7.3.1",
|
71
|
+
"@types/jest": "^27.4.0",
|
72
|
+
"@types/node": "^16.11.12",
|
73
|
+
"@types/semver": "^7.3.9",
|
74
|
+
eslint: "^7.23.0",
|
75
|
+
jest: "^27.4.3",
|
76
|
+
semver: "^7.3.5",
|
77
|
+
"strip-ansi": "^6.0.1",
|
78
|
+
"ts-jest": "^27.1.1",
|
79
|
+
tsup: "^5.10.3",
|
80
|
+
typescript: "^4.5.5"
|
81
|
+
},
|
82
|
+
files: [
|
83
|
+
"dist",
|
84
|
+
"templates"
|
85
|
+
]
|
114
86
|
};
|
115
87
|
|
116
88
|
// src/shouldUseYarn.ts
|
@@ -319,7 +291,10 @@ async function run() {
|
|
319
291
|
let sharedPkg = require(path2.join(sharedTemplate, "package.json"));
|
320
292
|
let projectPkg = require(path2.join(projectDir, "package.json"));
|
321
293
|
["dependencies", "devDependencies"].forEach((pkgKey) => {
|
322
|
-
sharedPkg[pkgKey] =
|
294
|
+
sharedPkg[pkgKey] = {
|
295
|
+
...sharedPkg[pkgKey],
|
296
|
+
...projectPkg[pkgKey]
|
297
|
+
};
|
323
298
|
});
|
324
299
|
sharedPkg.packageManager = `${answers.packageManager}@${getPackageManagerVersion(answers.packageManager)}`;
|
325
300
|
sharedPkg.name = projectName;
|
package/package.json
CHANGED
package/templates/npm/turbo.json
CHANGED