From 9a43eaccebb8044bdf23ee323b7c5b772d72e094 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Mon, 15 Jan 2024 09:15:40 +0100 Subject: [PATCH] exp setup sentry: Fix file extension (#9829) --- .../src/commands/experimental/setupSentryHandler.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/commands/experimental/setupSentryHandler.js b/packages/cli/src/commands/experimental/setupSentryHandler.js index a249a75a4188..3f1874f1e9f1 100644 --- a/packages/cli/src/commands/experimental/setupSentryHandler.js +++ b/packages/cli/src/commands/experimental/setupSentryHandler.js @@ -21,7 +21,7 @@ import { writeFile } from '../../lib' const PATHS = getPaths() export const handler = async ({ force }) => { - const extension = isTypeScriptProject ? 'ts' : 'js' + const extension = isTypeScriptProject() ? 'ts' : 'js' const notes = [] @@ -85,9 +85,9 @@ export const handler = async ({ force }) => { '', 'export const handler = createGraphQLHandler({', 'extraPlugins: [useSentry({', - 'includeRawResult: true,', - 'includeResolverArgs: true,', - 'includeExecuteVariables: true,', + ' includeRawResult: true,', + ' includeResolverArgs: true,', + ' includeExecuteVariables: true,', '})],' ) @@ -149,7 +149,7 @@ export const handler = async ({ force }) => { // Use string replace to preserve comments and formatting writeFile( redwoodTomlPath, - configContent.concat(`\n[experimental.sentry]\n\tenabled = true\n`), + configContent.concat(`\n[experimental.sentry]\n enabled = true\n`), { overwriteExisting: true, // redwood.toml always exists }