Skip to content

Commit dde2c9f

Browse files
committed
Copy more useful package metadata
1 parent 8ba2bc0 commit dde2c9f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ function prebuildify (opts, cb) {
8282
version: packageData.version,
8383
os: [opts.platform],
8484
cpu: [opts.arch],
85+
// copy some of the useful package metadata, if any of these are missing, should just be skipped when stringified
86+
license: packageData.license,
87+
author: packageData.author,
88+
repository: packageData.repository,
89+
bugs: packageData.bugs,
90+
homepage: packageData.homepage,
8591
description
8692
}, null, 2))
8793
fs.writeFileSync(path.join(opts.builds, 'index.js'), '') // needed to resolve package

0 commit comments

Comments
 (0)