Skip to content

Commit dc87ebc

Browse files
committed
Fix wrongly printed tsconfig changes
1 parent 87e7e74 commit dc87ebc

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

packages/next/src/lib/typescript/writeConfigurationDefaults.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ describe('writeConfigurationDefaults()', () => {
8282
The following suggested values were added to your tsconfig.json. These values can be changed to fit your project's needs:
8383
8484
85-
- (For top-level \`await\`. Note: Next.js only polyfills for the esmodules target.)
85+
- target was set to ES2017 (For top-level \`await\`. Note: Next.js only polyfills for the esmodules target.)
8686
87-
- (undefined)
87+
- lib was set to dom,dom.iterable,esnext
8888
89-
- (undefined)
89+
- allowJs was set to true
9090
91-
- (undefined)
91+
- skipLibCheck was set to true
9292
93-
- (undefined)
93+
- strict was set to false
9494
95-
- (undefined)
95+
- noEmit was set to true
9696
97-
- (undefined)
97+
- incremental was set to true
9898
9999
- include was set to ['next-env.d.ts', '.next/types/**/*.ts', '**/*.ts', '**/*.tsx']
100100

packages/next/src/lib/typescript/writeConfigurationDefaults.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ export async function writeConfigurationDefaults(
176176
cyan(optionKey) +
177177
' was set to ' +
178178
bold(check.suggested) +
179-
check.reason
180-
? ` (${check.reason})`
181-
: ''
179+
(check.reason ? ` (${check.reason})` : '')
182180
)
183181
}
184182
} else if ('value' in check) {

0 commit comments

Comments
 (0)