create-turbo 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_chalk = __toModule(require("chalk"));
31
31
 
32
32
  // package.json
33
33
  var name = "create-turbo";
34
- var version = "1.0.6";
34
+ var version = "1.0.7";
35
35
  var description = "Create a new Turborepo";
36
36
  var homepage = "https://turborepo.org";
37
37
  var license = "MPL-2.0";
@@ -274,34 +274,39 @@ async function run() {
274
274
  });
275
275
  spinner.stop();
276
276
  }
277
- process.chdir(relativeProjectDir);
277
+ process.chdir(projectDir);
278
278
  tryGitInit(relativeProjectDir);
279
- if (projectDirIsCurrentDir) {
280
- console;
281
- console.log(`${import_chalk.default.bold(turboGradient(">>> Success!"))} Check the README for development and deploy instructions!`);
282
- } else {
283
- console.log(`${import_chalk.default.bold(turboGradient(">>> Success!"))} Your new Turborepo is ready. `);
284
- console.log();
285
- console.log(`To build all apps and packages, run the following:`);
286
- console.log();
279
+ console.log(`${import_chalk.default.bold(turboGradient(">>> Success!"))} Your new Turborepo is ready. `);
280
+ console.log();
281
+ console.log(`To build all apps and packages, run the following:`);
282
+ console.log();
283
+ if (!projectDirIsCurrentDir) {
287
284
  console.log(` cd ${relativeProjectDir}`);
288
- console.log(` ${answers.packageManager} run build`);
289
- console.log();
290
- console.log(`To develop all apps and packages, run the following:`);
291
- console.log();
285
+ }
286
+ console.log(` ${answers.packageManager} run build`);
287
+ console.log();
288
+ console.log(`To develop all apps and packages, run the following:`);
289
+ console.log();
290
+ if (!projectDirIsCurrentDir) {
292
291
  console.log(` cd ${relativeProjectDir}`);
293
- console.log(` ${answers.packageManager} run dev`);
294
- console.log();
295
- console.log(`Turborepo will cache locally by default. For an additional`);
296
- console.log(`speed boost, enable Remote Caching (beta) with Vercel by`);
297
- console.log(`entering the following commands:`);
298
- console.log();
292
+ }
293
+ console.log(` ${answers.packageManager} run dev`);
294
+ console.log();
295
+ console.log(`Turborepo will cache locally by default. For an additional`);
296
+ console.log(`speed boost, enable Remote Caching (beta) with Vercel by`);
297
+ console.log(`entering the following commands:`);
298
+ console.log();
299
+ if (!projectDirIsCurrentDir) {
299
300
  console.log(` cd ${relativeProjectDir}`);
300
- console.log(` npx turbo login`);
301
- console.log();
301
+ }
302
+ console.log(` npx turbo login`);
303
+ console.log();
304
+ if (projectDirIsCurrentDir) {
305
+ console.log(`For more info, checkout the README`);
306
+ } else {
302
307
  console.log(`For more info, checkout the README in ${import_chalk.default.bold(relativeProjectDir)}`);
303
- console.log(`as well as the official Turborepo docs ${import_chalk.default.underline("https://turborepo.org")}`);
304
308
  }
309
+ console.log(`as well as the official Turborepo docs ${import_chalk.default.underline("https://turborepo.org/docs")}`);
305
310
  }
306
311
  var update = (0, import_update_check.default)(package_default).catch(() => null);
307
312
  async function notifyUpdate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turborepo.org",
6
6
  "license": "MPL-2.0",
@@ -14,13 +14,13 @@ This turborepo includes the following packages/apps:
14
14
  - `config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
15
15
  - `tsconfig`: `tsconfig.json`s used throughout the monorepo
16
16
 
17
- Each package/app is 100% [Typescript](https://www.typescriptlang.org/).
17
+ Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
18
18
 
19
19
  ### Utilities
20
20
 
21
21
  This turborepo has some additional tools already setup for you:
22
22
 
23
- - [Typescript](https://www.typescriptlang.org/) for static type checking
23
+ - [TypeScript](https://www.typescriptlang.org/) for static type checking
24
24
  - [ESLint](https://eslint.org/) for code linting
25
25
  - [Jest](https://jestjs.io) test runner for all things JavaScript
26
26
  - [Prettier](https://prettier.io) for code formatting
@@ -21,6 +21,7 @@ build
21
21
  npm-debug.log*
22
22
  yarn-debug.log*
23
23
  yarn-error.log*
24
+ .pnpm-debug.log*
24
25
 
25
26
  # local env files
26
27
  .env.local
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "turborepo-basic",
2
+ "name": "turborepo-basic-shared",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "workspaces": [
@@ -10,7 +10,7 @@
10
10
  "build": "turbo run build",
11
11
  "dev": "turbo run dev --parallel",
12
12
  "lint": "turbo run lint",
13
- "format": "prettier --write '**/*.{ts,tsx,.md}'"
13
+ "format": "prettier --write \"**/*.{ts,tsx,md}\""
14
14
  },
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
@@ -34,5 +34,10 @@
34
34
  "cache": false
35
35
  }
36
36
  }
37
+ },
38
+ "engines": {
39
+ "npm": ">=7.0.0",
40
+ "pnpm": ">=3.7.0",
41
+ "node": ">=14.0.0"
37
42
  }
38
43
  }
@@ -14,13 +14,13 @@ This turborepo uses [NPM](https://www.npmjs.com/) as a package manager. It inclu
14
14
  - `config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
15
15
  - `tsconfig`: `tsconfig.json`s used throughout the monorepo
16
16
 
17
- Each package/app is 100% [Typescript](https://www.typescriptlang.org/).
17
+ Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
18
18
 
19
19
  ### Utilities
20
20
 
21
21
  This turborepo has some additional tools already setup for you:
22
22
 
23
- - [Typescript](https://www.typescriptlang.org/) for static type checking
23
+ - [TypeScript](https://www.typescriptlang.org/) for static type checking
24
24
  - [ESLint](https://eslint.org/) for code linting
25
25
  - [Jest](https://jestjs.io) test runner for all things JavaScript
26
26
  - [Prettier](https://prettier.io) for code formatting
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "turborepo-basic",
2
+ "name": "turborepo-basic-npm",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "workspaces": [
@@ -10,7 +10,7 @@
10
10
  "build": "turbo run build",
11
11
  "dev": "turbo run dev --parallel",
12
12
  "lint": "turbo run lint",
13
- "format": "prettier --write '**/*.{ts,tsx,.md}'"
13
+ "format": "prettier --write \"**/*.{ts,tsx,md}\""
14
14
  },
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
@@ -14,13 +14,13 @@ This turborepo uses [PNPM](https://pnpm.io) as a packages manager. It includes t
14
14
  - `config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
15
15
  - `tsconfig`: `tsconfig.json`s used throughout the monorepo
16
16
 
17
- Each package/app is 100% [Typescript](https://www.typescriptlang.org/).
17
+ Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
18
18
 
19
19
  ### Utilities
20
20
 
21
21
  This turborepo has some additional tools already setup for you:
22
22
 
23
- - [Typescript](https://www.typescriptlang.org/) for static type checking
23
+ - [TypeScript](https://www.typescriptlang.org/) for static type checking
24
24
  - [ESLint](https://eslint.org/) for code linting
25
25
  - [Jest](https://jestjs.io) test runner for all things JavaScript
26
26
  - [Prettier](https://prettier.io) for code formatting
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "turborepo-basic",
2
+ "name": "turborepo-basic-pnpm",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "build": "turbo run build",
7
7
  "dev": "turbo run dev --parallel",
8
8
  "lint": "turbo run lint",
9
- "format": "prettier --write '**/*.{ts,tsx,.md}'"
9
+ "format": "prettier --write \"**/*.{ts,tsx,md}\""
10
10
  },
11
11
  "devDependencies": {
12
12
  "prettier": "^2.5.1",
@@ -4,7 +4,7 @@ This is an official Yarn v1 starter turborepo.
4
4
 
5
5
  ## What's inside?
6
6
 
7
- This turborepo uses [YARN](https://classic.yarnpkg.com/lang/en/) as a package manager. It includes the following packages/apps:
7
+ This turborepo uses [Yarn](https://classic.yarnpkg.com/lang/en/) as a package manager. It includes the following packages/apps:
8
8
 
9
9
  ### Apps and Packages
10
10
 
@@ -14,20 +14,20 @@ This turborepo uses [YARN](https://classic.yarnpkg.com/lang/en/) as a package ma
14
14
  - `config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
15
15
  - `tsconfig`: `tsconfig.json`s used throughout the monorepo
16
16
 
17
- Each package/app is 100% [Typescript](https://www.typescriptlang.org/).
17
+ Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
18
18
 
19
19
  ### Utilities
20
20
 
21
21
  This turborepo has some additional tools already setup for you:
22
22
 
23
- - [Typescript](https://www.typescriptlang.org/) for static type checking
23
+ - [TypeScript](https://www.typescriptlang.org/) for static type checking
24
24
  - [ESLint](https://eslint.org/) for code linting
25
25
  - [Jest](https://jestjs.io) test runner for all things JavaScript
26
26
  - [Prettier](https://prettier.io) for code formatting
27
27
 
28
28
  ## Setup
29
29
 
30
- This repository is used in the `npx create-turbo` command, and selected when choosing which package manager you wish to use with your monorepo (YARN).
30
+ This repository is used in the `npx create-turbo` command, and selected when choosing which package manager you wish to use with your monorepo (Yarn).
31
31
 
32
32
  ### Build
33
33
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "turborepo-basic",
2
+ "name": "turborepo-basic-yarn",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "workspaces": [
@@ -10,7 +10,7 @@
10
10
  "build": "turbo run build",
11
11
  "dev": "turbo run dev --parallel",
12
12
  "lint": "turbo run lint",
13
- "format": "prettier --write '**/*.{ts,tsx,.md}'"
13
+ "format": "prettier --write \"**/*.{ts,tsx,md}\""
14
14
  },
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
@@ -1,21 +0,0 @@
1
- $ next build
2
- info - Checking validity of types...
3
- info - Creating an optimized production build...
4
- info - Compiled successfully
5
- info - Collecting page data...
6
- info - Generating static pages (0/3)
7
- info - Generating static pages (3/3)
8
- info - Finalizing page optimization...
9
-
10
- Page Size First Load JS
11
- ┌ ○ / 300 B 72.1 kB
12
- └ ○ /404 195 B 72 kB
13
- + First Load JS shared by all 71.8 kB
14
- ├ chunks/framework-5d080e09fe9ac4b0.js 42 kB
15
- ├ chunks/main-5c6e89d795c5887e.js 27.8 kB
16
- ├ chunks/pages/_app-0ab73c0f312e3041.js 1.23 kB
17
- └ chunks/webpack-45f9f9587e6c08e1.js 729 B
18
-
19
- ○ (Static) automatically rendered as static HTML (uses no initial props)
20
-
21
- error - ESLint: Plugin "import" was conflicted between "../.eslintrc.js » eslint-config-next" and "../../../.eslintrc.js » eslint-config-next".
@@ -1,5 +0,0 @@
1
- yarn run v1.22.15
2
- $ next lint
3
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
4
- /bin/sh: next: command not found
5
- error Command failed with exit code 127.
@@ -1,21 +0,0 @@
1
- $ next build
2
- info - Checking validity of types...
3
- info - Creating an optimized production build...
4
- info - Compiled successfully
5
- info - Collecting page data...
6
- info - Generating static pages (0/3)
7
- info - Generating static pages (3/3)
8
- info - Finalizing page optimization...
9
-
10
- Page Size First Load JS
11
- ┌ ○ / 300 B 72.1 kB
12
- └ ○ /404 195 B 72 kB
13
- + First Load JS shared by all 71.8 kB
14
- ├ chunks/framework-5d080e09fe9ac4b0.js 42 kB
15
- ├ chunks/main-5c6e89d795c5887e.js 27.8 kB
16
- ├ chunks/pages/_app-0ab73c0f312e3041.js 1.23 kB
17
- └ chunks/webpack-45f9f9587e6c08e1.js 729 B
18
-
19
- ○ (Static) automatically rendered as static HTML (uses no initial props)
20
-
21
- error - ESLint: Plugin "import" was conflicted between "../.eslintrc.js » eslint-config-next" and "../../../.eslintrc.js » eslint-config-next".
@@ -1,6 +0,0 @@
1
- $ next dev
2
- ready - started server on 0.0.0.0:3000, url: http://localhost:3000
3
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
4
- error TS6053: File 'tsconfig/next.json' not found.
5
-
6
- error Command failed with exit code 1.