New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[minor] [chore] : Update to support Lerna structure #10
base: master
Are you sure you want to change the base?
Conversation
data.deps = moduleDeps; | ||
// Fetch the repo data file if it already exists | ||
let repoFile = {}; | ||
let writePath = Path.join(__dirname, `../../data/${moduleName}.json`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use const
here since writePath won't change.
And if try catch is to verify if the path exists, you can use optional-require: https://www.npmjs.com/package/optional-require
server/component-api/fetch-repo.js
Outdated
//fetch top level package.json for repo | ||
readPackageContent(org, repoName, "package.json") | ||
.then(response => { | ||
let packageContent = contentToString(response.content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
for packageContent?
if (err) { | ||
console.log(err); | ||
return; | ||
} | ||
|
||
exec(`crontab ${filePath}`, (error) => { | ||
exec(`crontab ${filePath}`, (error, stdout, stderr) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw some unused references here: stdout
, stderr
.
Please fix all the linter errors :-)
No description provided.