Skip to content

Commit 52c9461

Browse files
committed
fix replace in file for theme package.json
1 parent e997676 commit 52c9461

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

configure.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ function setupPackageJsonForTheme(): void
322322
'prettier-plugin-tailwindcss',
323323
], 'devDependencies');
324324

325-
$newData = json_decode(file_get_contents(__DIR__ . '/package.json'), true);
326-
327-
replaceInFile($newData, [
325+
replaceInFile(__DIR__ . '/package.json', [
328326
'dev:styles' => 'dev',
329327
'build:styles' => 'build',
330328
]);

0 commit comments

Comments
 (0)