Skip to content

Commit

Permalink
fix: format package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Mar 5, 2022
1 parent 46f495a commit 3747ff8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index-node14.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index-node14.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils/createGetDependencyPackageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function readPkgJson(packagePath: string): PackageJson {
}

export function writePkgJson(packagePath: string, pkg: PackageJson): void {
writeFileSync(packagePath, JSON.stringify(pkg));
writeFileSync(packagePath, JSON.stringify(pkg, null, 2));
}

type NodeModulesPackagePathCache = Map<string, PackageJson>;
Expand Down

0 comments on commit 3747ff8

Please sign in to comment.