create-turbo 1.3.2-canary.2 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +65 -90
  2. package/package.json +1 -1
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 __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
- };
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 target;
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.2";
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
- bugs,
109
- bin,
110
- scripts,
111
- dependencies,
112
- devDependencies,
113
- files
33
+ name: "create-turbo",
34
+ version: "1.3.2",
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] = __spreadValues(__spreadValues({}, sharedPkg[pkgKey]), projectPkg[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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "1.3.2-canary.2",
3
+ "version": "1.3.2",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turborepo.org",
6
6
  "license": "MPL-2.0",