holepunchto / pear

combined Peer-to-Peer (P2P) Runtime, Development & Deployment tool
https://docs.pears.com/
Apache License 2.0
91 stars 9 forks source link

custom cli scripts #46

Closed HopeTS closed 2 months ago

HopeTS commented 6 months ago

It would be great to add a pear equivalent to npm's "scripts" in package.json.

davidmarkclements commented 2 months ago

unlikely to do this, the future we're imagining of what dependency management looks like shouldn't need it (it's also a security hazard) - also on principal, avoid scripts if you can. if you have to use them, use npm. for spawning see the upcoming Pear.worker API - for many cases you can do your postinstall work inside an app init conditional check