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 8ba2bc0 commit dde2c9f
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 dde2c9f

Please sign in to comment.