Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Create dependencyInstaller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokasx authored Jan 22, 2021
1 parent b4d2ad3 commit ffba583
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/dependencyInstaller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
console.log("Running hook to install hooks pre-requisites");
module.exports = function (context) {
return new Promise((resolve, reject) => {
var child_process = require('child_process');
child_process.exec('npm install', {cwd: __dirname}, function (error) {
if (error !== null) {
console.log('exec error: ' + error);
reject('npm installation failed');
}
else {
resolve();
}
});
});
};

0 comments on commit ffba583

Please sign in to comment.