Skip to content

Commit

Permalink
fix(bug): use the package json of project, not repo in general (#1348)
Browse files Browse the repository at this point in the history
* fix(bug): use the package json of project, not repo in general

* fix(bug): test if repo has changes before executing commit

* Revert "fix(bug): test if repo has changes before executing commit"

This reverts commit 9c33a79.
  • Loading branch information
Ivy Feraco authored Mar 27, 2023
1 parent a11f018 commit 814ef5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create-cohort-project.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const addBootcampInfo = async (repoDir) => {
if (!existsSync(projectPkgJsonPath)) {
return;
}
const pkg = Object.assign(JSON.parse(await readFile('package.json')), {
const pkg = Object.assign(JSON.parse(await readFile(projectPkgJsonPath)), {
bootcamp: {
createdAt: (new Date()).toISOString(),
version: process.env.npm_package_version,
Expand Down

0 comments on commit 814ef5e

Please sign in to comment.