Skip to content

Commit b09bea9

Browse files
authored
Update package.json patch logic to include new fields (#214)
Added fields `description`, `author`, and `homepage` to the package.json patching logic, sourced from configuration values. This ensures more comprehensive metadata is included when generating or updating the package.json file.
1 parent e0624eb commit b09bea9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Traits/PatchesPackagesJson.php

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ protected function setAppNameAndVersion($developmentMode = false): string
2222

2323
$packageJson['name'] = $name;
2424
$packageJson['version'] = config('nativephp.version');
25+
$packageJson['description'] = config('nativephp.description');
26+
$packageJson['author'] = config('nativephp.author');
27+
$packageJson['homepage'] = config('nativephp.website');
2528

2629
file_put_contents($packageJsonPath, json_encode($packageJson, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
2730

0 commit comments

Comments
 (0)