Skip to content

Commit

Permalink
chore: add homepage to published package (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov authored Aug 9, 2024
1 parent 911449d commit 3d9fd2d
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions scripts/prepublishOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,27 @@ function generatePackageJson() {
writeJsonSync(`${packageJsonPath}.tmp`, tmpPackageJson, { spaces: 2 })

const {
name,
description,
dependencies,
peerDependencies,
peerDependenciesMeta,
version,
files,
exports: exports_,
// NOTE: We explicitly don't want to publish the type field. We create a separate package.json for `src/_cjs` and `src/_esm` that has the type field.
// type,
authors,
dependencies,
description,
exports: exports_,
files,
homepage,
keywords,
license,
main,
module,
name,
peerDependencies,
peerDependenciesMeta,
repository,
sideEffects,
types,
typings,
typesVersions,
sideEffects,
license,
repository,
authors,
keywords,
typings,
version,
} = tmpPackageJson

// Generate proxy packages for each export.
Expand Down Expand Up @@ -79,25 +80,26 @@ function generatePackageJson() {
writeJsonSync(
packageJsonPath,
{
name,
description,
// type,
authors,
dependencies,
peerDependencies,
peerDependenciesMeta,
version,
files: files_,
description,
exports: exports_,
// type,
files: files_,
homepage,
keywords,
license,
main,
module,
name,
peerDependencies,
peerDependenciesMeta,
repository,
sideEffects,
types,
typings,
typesVersions,
sideEffects,
license,
repository,
authors,
keywords,
typings,
version,
},
{ spaces: 2 }
)
Expand Down

0 comments on commit 3d9fd2d

Please sign in to comment.