Skip to content

Commit

Permalink
Merge pull request #21 from zMotivat0r/fix/load-lerna-json
Browse files Browse the repository at this point in the history
fix(utils): fixed lerna json reloading
  • Loading branch information
michaelyali authored Apr 10, 2021
2 parents d9d65a9 + c7b2b7b commit 0a7e23d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/templates/monorepo-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/node": "14.14.35",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"@zmotivat0r/mrepo": "0.3.1",
"@zmotivat0r/mrepo": "0.3.2",
"commitizen": "4.2.3",
"conventional-changelog-cli": "2.1.1",
"cz-conventional-changelog": "3.3.0",
Expand Down
1 change: 1 addition & 0 deletions lib/utils/config-file.loader.js

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

2 changes: 1 addition & 1 deletion lib/utils/config-file.loader.js.map

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

1 change: 1 addition & 0 deletions src/utils/config-file.loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function loadConfigFile(): IMrepoConfigFile {

export function loadLernaFile(): any {
const lernaFilePath = join(process.cwd(), `./lerna.json`);
delete require.cache[lernaFilePath];
return safeRequire(lernaFilePath);
}

Expand Down
2 changes: 1 addition & 1 deletion templates/monorepo-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/node": "14.14.35",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"@zmotivat0r/mrepo": "0.3.1",
"@zmotivat0r/mrepo": "0.3.2",
"commitizen": "4.2.3",
"conventional-changelog-cli": "2.1.1",
"cz-conventional-changelog": "3.3.0",
Expand Down

0 comments on commit 0a7e23d

Please sign in to comment.