Closed InfoSec812 closed 4 years ago
Instead of maintain the version in both the package.json and the bin/index.js, I realized I can just require the package.json and extract the version thanks to what I learned from @helio-frota.
package.json
bin/index.js
require
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities (and 0 Security Hotspots to review) 0 Code Smells
No Coverage information No Duplication information
Resolves N/A
Description
Instead of maintain the version in both the
package.json
and thebin/index.js
, I realized I can justrequire
thepackage.json
and extract the version thanks to what I learned from @helio-frota.