hyperjumptech / monika

Monika is a command line application to monitor every part of your web app using a simple YAML configuration file. Get alert not only when your site is down but also when it's slow.
https://monika.hyperjump.tech
MIT License
598 stars 66 forks source link

Update to OCLIF 4.10.x #1291

Closed sapiderman closed 2 months ago

sapiderman commented 5 months ago

Issue

  1. Current oclif used is 4.0.2
  2. To take advantage of the latest bugfixes in oclif
suyono3484 commented 3 months ago

problem updating to the 4.10.15 version (latest patch of 4.10.x) with error

$ npx oclif manifest
 ›   Warning: oclif update available from 4.10.15 to 4.14.0.
 ›   ModuleLoadError: [MODULE_NOT_FOUND] require failed to load /home/source/monika/lib/commands: Cannot find module '/home/source/monika/lib/commands'
 ›   Require stack:
 ›   - /home/source/monika/node_modules/@oclif/core/lib/module-loader.js
 ›   - /home/source/monika/node_modules/@oclif/core/lib/help/index.js
 ›   - /home/source/monika/node_modules/@oclif/core/lib/errors/handle.js
 ›   - /home/source/monika/node_modules/@oclif/core/lib/errors/index.js
 ›   - /home/source/monika/node_modules/@oclif/core/lib/cli-ux/index.js
 ›   - /home/source/monika/node_modules/@oclif/core/lib/index.js
 ›   Code: MODULE_NOT_FOUND

But, if I update to the latest version of oclif (version 4.14.0), it works. I ran the npm run test without error. What do you think? @nicnocquee @dennypradipta @haricnugraha @sapiderman

P.S. I put in my branch: https://github.com/suyono3484/monika/tree/1291-oclif-update