From 0f17380e28abe64a79654c7f92e4524ab42de2ef Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Thu, 27 Jan 2022 08:09:02 -0500 Subject: [PATCH 1/2] Add @types/node to examples and template --- create-turbo/templates/_shared_ts/apps/docs/package.json | 1 + create-turbo/templates/_shared_ts/apps/web/package.json | 1 + create-turbo/templates/pnpm/apps/docs/package.json | 1 + create-turbo/templates/pnpm/apps/web/package.json | 1 + examples/basic/apps/docs/package.json | 1 + examples/basic/apps/web/package.json | 1 + examples/basic/package.json | 2 -- examples/design-system/apps/docs/package.json | 1 + examples/design-system/package.json | 2 -- examples/kitchen-sink/apps/storefront/package.json | 1 + examples/kitchen-sink/package.json | 2 -- examples/with-pnpm/apps/docs/package.json | 1 + examples/with-pnpm/apps/web/package.json | 1 + examples/with-pnpm/package.json | 2 -- 14 files changed, 10 insertions(+), 8 deletions(-) diff --git a/create-turbo/templates/_shared_ts/apps/docs/package.json b/create-turbo/templates/_shared_ts/apps/docs/package.json index 9473069bb730a..7147726f4ffb5 100644 --- a/create-turbo/templates/_shared_ts/apps/docs/package.json +++ b/create-turbo/templates/_shared_ts/apps/docs/package.json @@ -19,6 +19,7 @@ "eslint": "7.32.0", "next-transpile-modules": "9.0.0", "tsconfig": "*", + "@types/node": "^17.0.12", "@types/react": "17.0.37", "typescript": "^4.5.3" } diff --git a/create-turbo/templates/_shared_ts/apps/web/package.json b/create-turbo/templates/_shared_ts/apps/web/package.json index 98e47698a643e..d35ec458bc044 100644 --- a/create-turbo/templates/_shared_ts/apps/web/package.json +++ b/create-turbo/templates/_shared_ts/apps/web/package.json @@ -19,6 +19,7 @@ "eslint": "7.32.0", "next-transpile-modules": "9.0.0", "tsconfig": "*", + "@types/node": "^17.0.12", "@types/react": "17.0.37", "typescript": "^4.5.3" } diff --git a/create-turbo/templates/pnpm/apps/docs/package.json b/create-turbo/templates/pnpm/apps/docs/package.json index 24b63c208a7bb..6923a3763a76c 100644 --- a/create-turbo/templates/pnpm/apps/docs/package.json +++ b/create-turbo/templates/pnpm/apps/docs/package.json @@ -19,6 +19,7 @@ "eslint": "7.32.0", "next-transpile-modules": "9.0.0", "tsconfig": "workspace:*", + "@types/node": "^17.0.12", "@types/react": "17.0.37", "typescript": "^4.5.3" } diff --git a/create-turbo/templates/pnpm/apps/web/package.json b/create-turbo/templates/pnpm/apps/web/package.json index b9c911365a1f3..f2137bcc4ba99 100644 --- a/create-turbo/templates/pnpm/apps/web/package.json +++ b/create-turbo/templates/pnpm/apps/web/package.json @@ -19,6 +19,7 @@ "eslint": "7.32.0", "next-transpile-modules": "9.0.0", "tsconfig": "workspace:*", + "@types/node": "^17.0.12", "@types/react": "17.0.37", "typescript": "^4.5.3" } diff --git a/examples/basic/apps/docs/package.json b/examples/basic/apps/docs/package.json index 8f921711b5e0e..4d0c2a4eb5f30 100644 --- a/examples/basic/apps/docs/package.json +++ b/examples/basic/apps/docs/package.json @@ -15,6 +15,7 @@ "ui": "*" }, "devDependencies": { + "@types/node": "^17.0.12", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "config": "*", diff --git a/examples/basic/apps/web/package.json b/examples/basic/apps/web/package.json index b8714eb492637..a3694c197a907 100644 --- a/examples/basic/apps/web/package.json +++ b/examples/basic/apps/web/package.json @@ -15,6 +15,7 @@ "ui": "*" }, "devDependencies": { + "@types/node": "^17.0.12", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "config": "*", diff --git a/examples/basic/package.json b/examples/basic/package.json index 62f141eabd27f..c53cdecda3900 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -1,6 +1,4 @@ { - "name": "turborepo-basic", - "version": "0.0.0", "private": true, "workspaces": [ "apps/*", diff --git a/examples/design-system/apps/docs/package.json b/examples/design-system/apps/docs/package.json index 3edb20191abbf..cd7b4cebb1072 100644 --- a/examples/design-system/apps/docs/package.json +++ b/examples/design-system/apps/docs/package.json @@ -18,6 +18,7 @@ }, "devDependencies": { "@acme/tsconfig": "*", + "@types/node": "^17.0.12", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "eslint-preset-acme": "*", diff --git a/examples/design-system/package.json b/examples/design-system/package.json index 1e02c2e09bc4d..5c815f80b3374 100755 --- a/examples/design-system/package.json +++ b/examples/design-system/package.json @@ -1,6 +1,4 @@ { - "name": "turborepo-design-system", - "version": "0.0.0", "private": true, "workspaces": [ "packages/*", diff --git a/examples/kitchen-sink/apps/storefront/package.json b/examples/kitchen-sink/apps/storefront/package.json index 23d03d084e56b..71d3a98d678d6 100644 --- a/examples/kitchen-sink/apps/storefront/package.json +++ b/examples/kitchen-sink/apps/storefront/package.json @@ -18,6 +18,7 @@ }, "devDependencies": { "@types/jest": "^26.0.22", + "@types/node": "^17.0.12", "@types/react": "^17.0.13", "@types/react-dom": "^17.0.8", "scripts": "*", diff --git a/examples/kitchen-sink/package.json b/examples/kitchen-sink/package.json index bba71cc782611..701ae30fd5aa2 100755 --- a/examples/kitchen-sink/package.json +++ b/examples/kitchen-sink/package.json @@ -1,6 +1,4 @@ { - "name": "turborepo", - "version": "0.0.0", "private": true, "workspaces": [ "packages/*", diff --git a/examples/with-pnpm/apps/docs/package.json b/examples/with-pnpm/apps/docs/package.json index dc6b3b9daeeb9..854e12074e8ad 100644 --- a/examples/with-pnpm/apps/docs/package.json +++ b/examples/with-pnpm/apps/docs/package.json @@ -15,6 +15,7 @@ "ui": "workspace:*" }, "devDependencies": { + "@types/node": "^17.0.12", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "config": "workspace:*", diff --git a/examples/with-pnpm/apps/web/package.json b/examples/with-pnpm/apps/web/package.json index 006c5ccea33ba..882bbb786803d 100644 --- a/examples/with-pnpm/apps/web/package.json +++ b/examples/with-pnpm/apps/web/package.json @@ -15,6 +15,7 @@ "ui": "workspace:*" }, "devDependencies": { + "@types/node": "^17.0.12", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "config": "workspace:*", diff --git a/examples/with-pnpm/package.json b/examples/with-pnpm/package.json index 256fff4f58bae..365f67f97dd1c 100644 --- a/examples/with-pnpm/package.json +++ b/examples/with-pnpm/package.json @@ -1,6 +1,4 @@ { - "name": "turborepo-with-pnpm", - "version": "0.0.0", "private": true, "scripts": { "build": "turbo run build", From ea398f684eb8d5b4e5430c77c53c018a1922847c Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Thu, 27 Jan 2022 08:12:09 -0500 Subject: [PATCH 2/2] Remove Jest reference from examples and templates --- create-turbo/templates/_shared_ts/README.md | 1 - create-turbo/templates/npm/README.md | 1 - create-turbo/templates/pnpm/README.md | 1 - create-turbo/templates/yarn/README.md | 1 - examples/basic/README.md | 1 - examples/with-pnpm/README.md | 1 - 6 files changed, 6 deletions(-) diff --git a/create-turbo/templates/_shared_ts/README.md b/create-turbo/templates/_shared_ts/README.md index aa09a500fde99..4d99126ae4972 100644 --- a/create-turbo/templates/_shared_ts/README.md +++ b/create-turbo/templates/_shared_ts/README.md @@ -22,5 +22,4 @@ This turborepo has some additional tools already setup for you: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Jest](https://jestjs.io) test runner for all things JavaScript - [Prettier](https://prettier.io) for code formatting diff --git a/create-turbo/templates/npm/README.md b/create-turbo/templates/npm/README.md index 0405eca9a5e64..e6f17320a87b7 100644 --- a/create-turbo/templates/npm/README.md +++ b/create-turbo/templates/npm/README.md @@ -22,7 +22,6 @@ This turborepo has some additional tools already setup for you: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Jest](https://jestjs.io) test runner for all things JavaScript - [Prettier](https://prettier.io) for code formatting ## Setup diff --git a/create-turbo/templates/pnpm/README.md b/create-turbo/templates/pnpm/README.md index 8816fecb6bd6e..7c702738003f5 100644 --- a/create-turbo/templates/pnpm/README.md +++ b/create-turbo/templates/pnpm/README.md @@ -22,7 +22,6 @@ This turborepo has some additional tools already setup for you: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Jest](https://jestjs.io) test runner for all things JavaScript - [Prettier](https://prettier.io) for code formatting ## Setup diff --git a/create-turbo/templates/yarn/README.md b/create-turbo/templates/yarn/README.md index 5a015c16c6b17..f554be79aa930 100644 --- a/create-turbo/templates/yarn/README.md +++ b/create-turbo/templates/yarn/README.md @@ -22,7 +22,6 @@ This turborepo has some additional tools already setup for you: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Jest](https://jestjs.io) test runner for all things JavaScript - [Prettier](https://prettier.io) for code formatting ## Setup diff --git a/examples/basic/README.md b/examples/basic/README.md index 18896ff29e1c3..1acabf1867ac0 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -22,7 +22,6 @@ This turborepo has some additional tools already setup for you: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Jest](https://jestjs.io) test runner for all things JavaScript - [Prettier](https://prettier.io) for code formatting ## Setup diff --git a/examples/with-pnpm/README.md b/examples/with-pnpm/README.md index b26caff48ff72..2e0be7bcf21c4 100644 --- a/examples/with-pnpm/README.md +++ b/examples/with-pnpm/README.md @@ -22,7 +22,6 @@ This turborepo has some additional tools already setup for you: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Jest](https://jestjs.io) test runner for all things JavaScript - [Prettier](https://prettier.io) for code formatting ## Setup