From a2549e6741d1fd22d2722651f16a3d288bdf5d13 Mon Sep 17 00:00:00 2001 From: Kishan Gajera Date: Mon, 14 Feb 2022 11:46:44 -0500 Subject: [PATCH] chore: upgrade to next 12 --- .../create-bison-app/template/next-env.d.ts | 4 ++- .../template/package.json.ejs | 2 +- .../create-bison-app/template/tsconfig.json | 34 +++++++++++++++---- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/packages/create-bison-app/template/next-env.d.ts b/packages/create-bison-app/template/next-env.d.ts index c6643fda..4f11a03d 100644 --- a/packages/create-bison-app/template/next-env.d.ts +++ b/packages/create-bison-app/template/next-env.d.ts @@ -1,3 +1,5 @@ /// -/// /// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/create-bison-app/template/package.json.ejs b/packages/create-bison-app/template/package.json.ejs index 66ec4e32..202d7b8d 100644 --- a/packages/create-bison-app/template/package.json.ejs +++ b/packages/create-bison-app/template/package.json.ejs @@ -66,7 +66,7 @@ "graphql-type-json": "^0.3.1", "jsonwebtoken": "^8.5.1", "micro": "^9.3.4", - "next": "11.1.2", + "next": "12.0.10", "nexus": "^1.1.0", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/packages/create-bison-app/template/tsconfig.json b/packages/create-bison-app/template/tsconfig.json index 9b351202..f80df6d0 100644 --- a/packages/create-bison-app/template/tsconfig.json +++ b/packages/create-bison-app/template/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -15,14 +19,32 @@ "isolatedModules": true, "jsx": "preserve", "sourceMap": true, - "plugins": [{ "name": "nexus/typescript-language-service" }], - "typeRoots": ["node_modules/@types", "types"], + "plugins": [ + { + "name": "nexus/typescript-language-service" + } + ], + "typeRoots": [ + "node_modules/@types", + "types" + ], "rootDir": ".", "baseUrl": ".", "paths": { "@/*": ["./*"] - } + }, + "incremental": true }, - "include": [".", "next-env.d.ts", "types.ts", "types.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules", "cypress"] + "include": [ + ".", + "next-env.d.ts", + "types.ts", + "types.d.ts", + "**/*.ts", + "**/*.tsx" + ], + "exclude": [ + "node_modules", + "cypress" + ] }