Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PackageJson.PublishConfig type #205

Merged

Conversation

ryansonshine
Copy link
Sponsor Contributor

This change adds the interface for the PackageJson.PublishConfig.

Closes #204

This change adds the interface for the PackageJson.PublishConfig.

Closes sindresorhus#204
@sindresorhus
Copy link
Owner

According to https://docs.npmjs.com/cli/v7/configuring-npm/package-json#publishconfig, it supports a lot more properties.

@ryansonshine
Copy link
Sponsor Contributor Author

@sindresorhus Ah good catch, when I initially read that I thought the config options applied to other sections in package.json as a whole. I'll do some additional digging and submit an update

@ryansonshine
Copy link
Sponsor Contributor Author

I added the type to allow for additional props in general, per https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/package.json#L576-L591

Copy link
Sponsor Contributor Author

@ryansonshine ryansonshine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@sindresorhus sindresorhus merged commit 305795c into sindresorhus:main May 7, 2021
@ryansonshine ryansonshine deleted the bugfix/publishConfig-204 branch May 14, 2021 23:38
@ryansonshine ryansonshine restored the bugfix/publishConfig-204 branch May 14, 2021 23:39
@ryansonshine ryansonshine deleted the bugfix/publishConfig-204 branch May 14, 2021 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PackageJson type does not contain known properties for "publishConfig"
2 participants