Skip to content

Commit

Permalink
fixed issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyu21 committed Jul 26, 2021
1 parent 9f55908 commit 60e9d11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private static function updateFiles()
$filesystem = new Filesystem();

// Append the default .gitignore
$filesystem->append(base_path('.gitignore'), "\n".implode("\n", static::GITIGNORES));
$filesystem->append(base_path('.gitignore'), "\n".implode("\n", static::GITIGNORES)."\n");

// Code style configuration
$filesystem->copy(__DIR__.'/../stubs/.editorconfig', base_path('.editorconfig'));
Expand Down Expand Up @@ -123,7 +123,7 @@ private static function updateDirectories()
$filesystem = new Filesystem();

// copy github actions configurations
$filesystem->copyDirectory(__DIR__ . '/../stubs/.github', base_path('.github'));
$filesystem->copyDirectory(__DIR__.'/../stubs/.github', base_path('.github'));
}

protected static function updatePackageArray(array $packages)
Expand Down Expand Up @@ -154,7 +154,6 @@ protected static function updatePackageScripts()

$packages = json_decode(file_get_contents(base_path('package.json')), true);


$packages[$configurationKey] = array_merge(
static::NPM_SCRIPT_TO_ADD,
$packages[$configurationKey]
Expand Down

0 comments on commit 60e9d11

Please sign in to comment.