Skip to content

Commit

Permalink
Copy more useful package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Apr 1, 2022
1 parent be7a6e9 commit 5be43f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5be43f8

Please sign in to comment.