create-turbo 1.0.29 → 1.1.0-canary.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var __toModule = (module2) => {
21
21
  // src/index.ts
22
22
  var path2 = __toModule(require("path"));
23
23
  var import_execa = __toModule(require("execa"));
24
+ var import_fs = __toModule(require("fs"));
24
25
  var import_fs_extra = __toModule(require("fs-extra"));
25
26
  var import_inquirer = __toModule(require("inquirer"));
26
27
  var import_ora = __toModule(require("ora"));
@@ -31,7 +32,7 @@ var import_chalk = __toModule(require("chalk"));
31
32
 
32
33
  // package.json
33
34
  var name = "create-turbo";
34
- var version = "1.0.29";
35
+ var version = "1.1.0-canary.3";
35
36
  var description = "Create a new Turborepo";
36
37
  var homepage = "https://turborepo.org";
37
38
  var license = "MPL-2.0";
@@ -305,6 +306,20 @@ async function run() {
305
306
  frames: [" ", "> ", ">> ", ">>>"]
306
307
  }
307
308
  }).start();
309
+ const data = import_fs.default.readFileSync(`${projectDir}/package.json`, "utf8");
310
+ const pkg = JSON.parse(data.toString());
311
+ switch (answers.packageManager) {
312
+ case "yarn":
313
+ pkg.packageManager = "yarn@1.22.17";
314
+ break;
315
+ case "pnpm":
316
+ pkg.packageManager = "pnpm@6.26.1";
317
+ break;
318
+ case "npm":
319
+ pkg.packageManager = "npm@8.3.0";
320
+ break;
321
+ }
322
+ import_fs.default.writeFileSync(`${projectDir}/package.json`, JSON.stringify(pkg, null, 2));
308
323
  await (0, import_execa.default)(`${answers.packageManager}`, [`install`], {
309
324
  stdio: "ignore",
310
325
  cwd: projectDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "1.0.29",
3
+ "version": "1.1.0-canary.3",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turborepo.org",
6
6
  "license": "MPL-2.0",
@@ -16,25 +16,6 @@
16
16
  "prettier": "^2.5.1",
17
17
  "turbo": "*"
18
18
  },
19
- "turbo": {
20
- "pipeline": {
21
- "build": {
22
- "dependsOn": [
23
- "^build"
24
- ],
25
- "outputs": [
26
- "dist/**",
27
- ".next/**"
28
- ]
29
- },
30
- "lint": {
31
- "outputs": []
32
- },
33
- "dev": {
34
- "cache": false
35
- }
36
- }
37
- },
38
19
  "engines": {
39
20
  "npm": ">=7.0.0",
40
21
  "node": ">=14.0.0"
@@ -0,0 +1,14 @@
1
+ {
2
+ "pipeline": {
3
+ "build": {
4
+ "dependsOn": ["^build"],
5
+ "outputs": ["dist/**", ".next/**"]
6
+ },
7
+ "lint": {
8
+ "outputs": []
9
+ },
10
+ "dev": {
11
+ "cache": false
12
+ }
13
+ }
14
+ }
@@ -15,24 +15,5 @@
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
17
17
  "turbo": "*"
18
- },
19
- "turbo": {
20
- "pipeline": {
21
- "build": {
22
- "dependsOn": [
23
- "^build"
24
- ],
25
- "outputs": [
26
- "dist/**",
27
- ".next/**"
28
- ]
29
- },
30
- "lint": {
31
- "outputs": []
32
- },
33
- "dev": {
34
- "cache": false
35
- }
36
- }
37
18
  }
38
19
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "pipeline": {
3
+ "build": {
4
+ "dependsOn": ["^build"],
5
+ "outputs": ["dist/**", ".next/**"]
6
+ },
7
+ "lint": {
8
+ "outputs": []
9
+ },
10
+ "dev": {
11
+ "cache": false
12
+ }
13
+ }
14
+ }
@@ -11,24 +11,5 @@
11
11
  "devDependencies": {
12
12
  "prettier": "^2.5.1",
13
13
  "turbo": "latest"
14
- },
15
- "turbo": {
16
- "pipeline": {
17
- "build": {
18
- "dependsOn": [
19
- "^build"
20
- ],
21
- "outputs": [
22
- "dist/**",
23
- ".next/**"
24
- ]
25
- },
26
- "lint": {
27
- "outputs": []
28
- },
29
- "dev": {
30
- "cache": false
31
- }
32
- }
33
14
  }
34
15
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "pipeline": {
3
+ "build": {
4
+ "dependsOn": ["^build"],
5
+ "outputs": ["dist/**", ".next/**"]
6
+ },
7
+ "lint": {
8
+ "outputs": []
9
+ },
10
+ "dev": {
11
+ "cache": false
12
+ }
13
+ }
14
+ }
@@ -15,24 +15,5 @@
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
17
17
  "turbo": "*"
18
- },
19
- "turbo": {
20
- "pipeline": {
21
- "build": {
22
- "dependsOn": [
23
- "^build"
24
- ],
25
- "outputs": [
26
- "dist/**",
27
- ".next/**"
28
- ]
29
- },
30
- "lint": {
31
- "outputs": []
32
- },
33
- "dev": {
34
- "cache": false
35
- }
36
- }
37
18
  }
38
19
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "pipeline": {
3
+ "build": {
4
+ "dependsOn": ["^build"],
5
+ "outputs": ["dist/**", ".next/**"]
6
+ },
7
+ "lint": {
8
+ "outputs": []
9
+ },
10
+ "dev": {
11
+ "cache": false
12
+ }
13
+ }
14
+ }