I'm trying to build a node library that will be stored into a .tgz
The issue is when I install this lib in another npm project, I have an error:
Non-registry package missing package.json: easy-rules-core@file:/Users/sbuisson/.m2/repository/org/jeasy/easy-rules-core-js/3.2.4/easy-rules-core-js-3.2.4.tgz.
The file structure of my tgz:
easy-rules-core-js-3.2.4.tgz
-> package
->package.json
->index.js
->node_modules
I've also tried without success:
easy-rules-core-js-3.2.4.tgz
->package.json
->index.js
->node_modules
Where should I put the package.json?
Bonus question: Do I need to put the node_modules folder into the tgz?