Skip to content

Commit

Permalink
[fix] create-svelte: make initial package.json pass lint (#5271)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtm-nayan authored Jun 25, 2022
1 parent fb068fe commit 70f8dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/proud-chicken-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

fix formatting for initial package.json
2 changes: 1 addition & 1 deletion packages/create-svelte/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function write_common_files(cwd, options, name) {
pkg.devDependencies = sort_keys(pkg.devDependencies);
pkg.name = to_valid_package_name(name);

fs.writeFileSync(pkg_file, JSON.stringify(pkg, null, '\t'));
fs.writeFileSync(pkg_file, JSON.stringify(pkg, null, '\t') + '\n');
}

/**
Expand Down

0 comments on commit 70f8dda

Please sign in to comment.