Running package.json scripts of external libraries JS

Viewed 118

I have a created library that has a script called "versionator": "node app.js" inside package.json. But currently, other projects that download this library can only use it by importing the module as:

const versionator = require("versionator")
versionator()

Is there a way that i can run the script called "versionator" that is inside my library folder from another projects that download this lib?

repo: https://github.com/sousadiego11/versionator-js

enter image description here

1 Answers
Related