logoalt Hacker News

halflifeyesterday at 6:10 PM2 repliesview on HN

What does it do with packages that download binaries for specific architecture in the post script?


Replies

madeofpalkyesterday at 6:28 PM

You don't need post-install scripts for this. Use optionalDependencies instead https://github.com/nrwl/nx/blob/master/packages/nx/package.j...

Each of those deps contains a constraint installing only for the relevant platform.

show 2 replies
edoceoyesterday at 6:28 PM

As stated, you manually approve them.