atom-package-dependencies
atom-package-dependencies copied to clipboard
Automatically install dependents
I am looking for a way around forcing devs to include apd.install() in their code to install depended-on packages.
Is there any way to perform a function on package install when atom-package-dependencies is included in dependencies of the package?
If you can break your dependency on the atom global, it seems like this could be done via a postinstall script
postinstall script is run in a modified environment, so it's not likely to work as expected...
A "postinstall": "HOME=\"$HOME\"/../.. apm install <dep>" appears to work (in a *nix world at least) - though the CLI tool doesn't appear to inform any running copy of atom, so activating packages is still an issue :(
This is what I'd call "fragile", since it assumes a little too much about environment and running shell. It is bound to break in some cases :disappointed:
Yup!
On Wed, Feb 4, 2015, 23:50 Nikolay Yakimov [email protected] wrote:
This is what I'd call "fragile", since it assumes a little too much about environment and running shell. It is bound to break in some cases [image: :disappointed:]
— Reply to this email directly or view it on GitHub https://github.com/travs/atom-package-dependencies/issues/3#issuecomment-73007226 .