Skip to content

Commit

Permalink
Tweak scripts changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Aug 23, 2023
1 parent ac3aaf4 commit 61de02f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ protected function appendScriptsToComposer(array $content, Filesystem $filesyste
}

if (\count($lintScripts) > 0) {
$content['scripts']['lint'] = [
'@prepare',
...$lintScripts,
];
$content['scripts']['lint'] = $lintScripts;
}
}

Expand All @@ -144,7 +141,7 @@ protected function appendScriptsToComposer(array $content, Filesystem $filesyste
|| $filesystem->exists(Workbench::packagePath('phpunit.xml.dist'))
) {
if (! \array_key_exists('test', $content['scripts'])) {
$content['scripts']['test'] = InstalledVersions::isInstalled('pestphp/pest')
$content['scripts']['test'][] = InstalledVersions::isInstalled('pestphp/pest')
? '@php vendor/bin/pest'
: '@php vendor/bin/phpunit';
}
Expand Down

0 comments on commit 61de02f

Please sign in to comment.