Skip to content

Commit

Permalink
update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Apr 22, 2024
1 parent af0a2d5 commit ee4873a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions modelina-cli/scripts/renameModelinaPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ if (!fs.existsSync(modelinaPackageDir)){
fs.renameSync(path.resolve(__dirname, `../asyncapi-modelina-${modelinaPkg.version}.tgz`), path.resolve(__dirname, `./modelina-package/asyncapi-modelina.tgz`));

// Make sure we update the installed tarball as we will run into EINTEGRITY issues
console.log(`Removing old @asyncapi/modelina dependency to avoid EINTEGRITY issues`)
var child = spawnSync(`npm`, ["install", path.resolve(__dirname, "./modelina-package/asyncapi-modelina.tgz")], { encoding : 'utf8', cwd: path.resolve(__dirname, '../')});
console.log("Process finished.");
if(child.error) {
console.log("ERROR: ",child.error);
}
console.log(`Installing new tarball @asyncapi/modelina dependency to avoid EINTEGRITY issues`)
var child = spawnSync(`npm`, ["upgrade", "@asyncapi/modelina"], { encoding : 'utf8', cwd: path.resolve(__dirname, '../')});
console.log("stdout: ",child.stdout);
console.log("stderr: ",child.stderr);
console.log("exist code: ",child.status);
console.log(`Modelina installed into CLI`)
console.log(`Modelina installed into CLI`);

0 comments on commit ee4873a

Please sign in to comment.