Skip to content

Commit

Permalink
fix: the outputed package.json of the newly created project was minif…
Browse files Browse the repository at this point in the history
…ied by mistake (default behavior of JSON.stringify).
  • Loading branch information
anasouardini committed Feb 19, 2024
1 parent f7cf920 commit 3fea533
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrapeyard",
"version": "0.5.7",
"version": "0.5.8",
"description": "A scraping library that saves you from writing a lot of boiler-plate every time you lunch a new project. It also helps you manage multiple projects in one place.",
"main": "./lib/mainInterface.js",
"module": "./lib/mainInterface.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/scrapeyard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tools from "./tools";
import vars, { Args } from "./vars";

tools.printFileTree(vars.parentPath, "", ["node_modules"]);
// tools.printFileTree(vars.parentPath, "", ["node_modules"]);

const packageInfo = tools.getPackageInfo(vars.parentPath);

Expand Down
2 changes: 1 addition & 1 deletion src/cli/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getPackageInfo(packgeDir: string): PackgeInfo {
}

function setPackageInfo(packgeDir: string, infoObj: Record<string, any>) {
const packageInfoJSON = JSON.stringify(infoObj);
const packageInfoJSON = JSON.stringify(infoObj, null, " ");
try {
fs.writeFileSync(
path.join(packgeDir, "package.json"),
Expand Down

0 comments on commit 3fea533

Please sign in to comment.