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 e0c4dd9 commit 950aec3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modelina-cli/package-lock.json

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

2 changes: 1 addition & 1 deletion modelina-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"bugs": "https://github.com/asyncapi/modelina/issues",
"dependencies": {
"@asyncapi/modelina": "file:./scripts/modelina-package/asyncapi-modelina.tgz",
"@asyncapi/modelina": "file:scripts/modelina-package/asyncapi-modelina.tgz",
"@oclif/core": "^3.26.0",
"@oclif/errors": "^1.3.6",
"@oclif/plugin-not-found": "^3.1.1",
Expand Down
11 changes: 10 additions & 1 deletion modelina-cli/scripts/renameModelinaPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ 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
spawnSync(`cd ${__dirname}/../ && npm update @asyncapi/modelina`)
console.log(`Removing old @asyncapi/modelina dependency to avoid EINTEGRITY issues`)
var child = spawnSync(`npm`, ["install", "./scripts/modelina-package/asyncapi-modelina.tgz"], { encoding : 'utf8', cwd: `${__dirname}/../` });
console.log("Process finished.");
if(child.error) {
console.log("ERROR: ",child.error);
}
console.log("stdout: ",child.stdout);
console.log("stderr: ",child.stderr);
console.log("exist code: ",child.status);
console.log(`Modelina installed into CLI`)

0 comments on commit 950aec3

Please sign in to comment.