From dde2c9fcfa4d9f40e8d3c188b90c836c17aad69b Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Fri, 1 Apr 2022 09:57:40 -0600 Subject: [PATCH] Copy more useful package metadata --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 13d9dc0..2d38e45 100644 --- a/index.js +++ b/index.js @@ -82,6 +82,12 @@ function prebuildify (opts, cb) { version: packageData.version, os: [opts.platform], cpu: [opts.arch], + // copy some of the useful package metadata, if any of these are missing, should just be skipped when stringified + license: packageData.license, + author: packageData.author, + repository: packageData.repository, + bugs: packageData.bugs, + homepage: packageData.homepage, description }, null, 2)) fs.writeFileSync(path.join(opts.builds, 'index.js'), '') // needed to resolve package