Skip to content

Commit

Permalink
Merge pull request #58 from Emmo00/packagejson-patch
Browse files Browse the repository at this point in the history
[fix] Make package.json file prettier. Fixes #51
  • Loading branch information
JC-Coder committed Mar 2, 2024
2 parents e69fb18 2024e36 commit 9f25fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/create-backend-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 159,7 @@ export async function createBackendProject(
// update packageJsonFile
createAndUpdateFile(
`${destinationPath}/package.json`,
JSON.stringify(packageJson),
JSON.stringify(packageJson, null, " "),
);
} else if (framework === "expressjs") {
let database_config = "";
Expand Down Expand Up @@ -240,7 240,7 @@ export async function createBackendProject(
// add package json file
createAndUpdateFile(
`${destinationPath}/package.json`,
JSON.stringify(ExpressJsPackageJsonTemplate),
JSON.stringify(ExpressJsPackageJsonTemplate, null, " "),
);
} else if (framework === "django") {
// django does not support some file namings so the name has to be parsed into a valid python identifier.
Expand Down

0 comments on commit 9f25fab

Please sign in to comment.