create-turbo 1.2.15 → 1.2.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +25 -9
- package/package.json +1 -1
- package/templates/_shared_ts/package.json +1 -0
- /package/templates/_shared_ts/packages/{eslint-config-acme → eslint-config-custom}/index.js +0 -0
- /package/templates/_shared_ts/packages/{eslint-config-acme → eslint-config-custom}/package.json +0 -0
package/dist/index.js
CHANGED
@@ -3,8 +3,22 @@ var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
6
7
|
var __getProtoOf = Object.getPrototypeOf;
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
11
|
+
var __spreadValues = (a, b) => {
|
12
|
+
for (var prop in b || (b = {}))
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
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
|
+
};
|
8
22
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
9
23
|
var __reExport = (target, module2, copyDefault, desc) => {
|
10
24
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
@@ -31,7 +45,7 @@ var import_chalk = __toESM(require("chalk"));
|
|
31
45
|
|
32
46
|
// package.json
|
33
47
|
var name = "create-turbo";
|
34
|
-
var version = "1.2.
|
48
|
+
var version = "1.2.16";
|
35
49
|
var description = "Create a new Turborepo";
|
36
50
|
var homepage = "https://turborepo.org";
|
37
51
|
var license = "MPL-2.0";
|
@@ -297,17 +311,19 @@ async function run() {
|
|
297
311
|
await import_fs_extra.default.copy(serverTemplate, projectDir, { overwrite: true });
|
298
312
|
}
|
299
313
|
await import_fs_extra.default.move(path2.join(projectDir, "gitignore"), path2.join(projectDir, ".gitignore"));
|
300
|
-
let
|
314
|
+
let sharedPkg = require(path2.join(sharedTemplate, "package.json"));
|
315
|
+
let projectPkg = require(path2.join(projectDir, "package.json"));
|
301
316
|
["dependencies", "devDependencies"].forEach((pkgKey) => {
|
302
|
-
|
303
|
-
|
304
|
-
|
317
|
+
sharedPkg[pkgKey] = __spreadValues(__spreadValues({}, sharedPkg[pkgKey]), projectPkg[pkgKey]);
|
318
|
+
for (let key in sharedPkg[pkgKey]) {
|
319
|
+
if (sharedPkg[pkgKey][key] === "*") {
|
320
|
+
sharedPkg[pkgKey][key] = `latest`;
|
305
321
|
}
|
306
322
|
}
|
307
323
|
});
|
308
|
-
|
309
|
-
|
310
|
-
await import_fs_extra.default.writeFile(path2.join(projectDir, "package.json"), JSON.stringify(
|
324
|
+
sharedPkg.packageManager = `${answers.packageManager}@${getPackageManagerVersion(answers.packageManager)}`;
|
325
|
+
sharedPkg.name = projectName;
|
326
|
+
await import_fs_extra.default.writeFile(path2.join(projectDir, "package.json"), JSON.stringify(sharedPkg, null, 2));
|
311
327
|
if (flags.install) {
|
312
328
|
console.log();
|
313
329
|
console.log(`>>> Creating a new turborepo with the following:`);
|
@@ -315,7 +331,7 @@ async function run() {
|
|
315
331
|
console.log(` - ${import_chalk.default.bold("apps/web")}: Next.js with TypeScript`);
|
316
332
|
console.log(` - ${import_chalk.default.bold("apps/docs")}: Next.js with TypeScript`);
|
317
333
|
console.log(` - ${import_chalk.default.bold("packages/ui")}: Shared React component library`);
|
318
|
-
console.log(` - ${import_chalk.default.bold("packages/config")}: Shared configuration (ESLint)`);
|
334
|
+
console.log(` - ${import_chalk.default.bold("packages/eslint-config-custom")}: Shared configuration (ESLint)`);
|
319
335
|
console.log(` - ${import_chalk.default.bold("packages/tsconfig")}: Shared TypeScript \`tsconfig.json\``);
|
320
336
|
console.log();
|
321
337
|
const spinner = (0, import_ora.default)({
|
package/package.json
CHANGED
File without changes
|
/package/templates/_shared_ts/packages/{eslint-config-acme → eslint-config-custom}/package.json
RENAMED
File without changes
|