Skip to content

Commit 01d9d30

Browse files
correct default package.json format (#5013)
* correct default package.json format * Create curly-doors-type.md Co-authored-by: Rich Harris <[email protected]>
1 parent f282faf commit 01d9d30

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.changeset/curly-doors-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-svelte": patch
3+
---
4+
5+
correct default package.json format

packages/create-svelte/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function write_common_files(cwd, options, name) {
7474
pkg.devDependencies = sort_keys(pkg.devDependencies);
7575
pkg.name = to_valid_package_name(name);
7676

77-
fs.writeFileSync(pkg_file, JSON.stringify(pkg, null, ' '));
77+
fs.writeFileSync(pkg_file, JSON.stringify(pkg, null, '\t'));
7878
}
7979

8080
/**

packages/create-svelte/shared/+eslint/.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ node_modules
88
!.env.example
99

1010
# Ignore files for PNPM, NPM and YARN
11-
package.json
1211
pnpm-lock.yaml
1312
package-lock.json
1413
yarn.lock

packages/create-svelte/shared/+prettier/.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ node_modules
88
!.env.example
99

1010
# Ignore files for PNPM, NPM and YARN
11-
package.json
1211
pnpm-lock.yaml
1312
package-lock.json
1413
yarn.lock

0 commit comments

Comments
 (0)