From 6cfebfb02c2a52a1f99fca59a2eac2d704d053db Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Sun, 11 Dec 2022 01:08:07 +0100 Subject: [PATCH] Skip creating VSCode config and `.gitignore` if running in CI (#43935) NEXT-233 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --- packages/next/lib/verifyTypeScriptSetup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/lib/verifyTypeScriptSetup.ts b/packages/next/lib/verifyTypeScriptSetup.ts index d280046e3f1e5dd..2daa8b9ab1767d4 100644 --- a/packages/next/lib/verifyTypeScriptSetup.ts +++ b/packages/next/lib/verifyTypeScriptSetup.ts @@ -125,7 +125,7 @@ export async function verifyTypeScriptSetup({ // Next.js' types: await writeAppTypeDeclarations(dir, !disableStaticImages) - if (isAppDirEnabled) { + if (isAppDirEnabled && !isCI) { await writeVscodeConfigurations(dir, tsPath) }