From 52c94615c50db07a67ec0036a1823f61d89e9d76 Mon Sep 17 00:00:00 2001 From: Adam Weston Date: Sun, 16 Jul 2023 11:21:34 -0400 Subject: [PATCH] fix replace in file for theme package.json --- configure.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.php b/configure.php index e34cb39..70b4ccf 100644 --- a/configure.php +++ b/configure.php @@ -322,9 +322,7 @@ function setupPackageJsonForTheme(): void 'prettier-plugin-tailwindcss', ], 'devDependencies'); - $newData = json_decode(file_get_contents(__DIR__ . '/package.json'), true); - - replaceInFile($newData, [ + replaceInFile(__DIR__ . '/package.json', [ 'dev:styles' => 'dev', 'build:styles' => 'build', ]);