From 345c78cf92a29ab0e0fecce5e4eec9559498aae1 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Thu, 24 Jun 2021 09:23:50 -0500 Subject: [PATCH] Add comment to not edit in next-env file --- packages/next/lib/typescript/writeAppTypeDeclarations.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/next/lib/typescript/writeAppTypeDeclarations.ts b/packages/next/lib/typescript/writeAppTypeDeclarations.ts index 9bc1a039dd56b..10994fcff3d8d 100644 --- a/packages/next/lib/typescript/writeAppTypeDeclarations.ts +++ b/packages/next/lib/typescript/writeAppTypeDeclarations.ts @@ -17,6 +17,10 @@ export async function writeAppTypeDeclarations( os.EOL + (imageImportsEnabled ? '/// ' + os.EOL - : '') + : '') + + os.EOL + + '// NOTE: This file should not be edited' + + os.EOL + + '// see https://nextjs.org/docs/basic-features/typescript for more information.' ) }