Skip to content

Commit

Permalink
save file with EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jan 24, 2021
1 parent 3ccc7f4 commit a284f74
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
5 changes: 4 additions & 1 deletion packages/xarc-app-dev/src/lib/tasks/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export const loadPkgJson = (dir: string) => {
* @returns none
*/
export const savePkgJson = (dir: string, pkgJson: any) => {
return Fs.writeFileSync(Path.resolve(dir, "package.json"), JSON.stringify(pkgJson, null, 2));
return Fs.writeFileSync(
Path.resolve(dir, "package.json"),
`${JSON.stringify(pkgJson, null, 2)}\n`
);
};

/* eslint-disable @typescript-eslint/no-var-requires */
Expand Down
2 changes: 1 addition & 1 deletion samples/react-jest-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
}
},
"optionalDependencies": {}
}
}
2 changes: 1 addition & 1 deletion samples/stylus-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
"@xarc/opt-stylus": "../../packages/xarc-opt-stylus"
}
}
}
}
3 changes: 2 additions & 1 deletion samples/subapp2-poc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"npm": ">= 6"
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@xarc/app": "^8.1.8",
"@xarc/fastify-server": "^2.0.0",
"@xarc/react": "^0.0.3",
Expand Down Expand Up @@ -63,4 +64,4 @@
"@xarc/opt-stylus": "../../packages/xarc-opt-stylus"
}
}
}
}
2 changes: 1 addition & 1 deletion samples/subapp2-todo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
"@xarc/app-dev": "../../packages/xarc-app-dev"
}
}
}
}
2 changes: 1 addition & 1 deletion samples/universal-react-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
}
},
"optionalDependencies": {}
}
}

0 comments on commit a284f74

Please sign in to comment.