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

feat: support private keys #102

Merged
merged 3 commits into from
Dec 30, 2019
Merged

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Dec 20, 2019

npm offical package read-package-json and popular package read-pkg and read-pkg-up, add some private keys to json, like _id.

This PR make those private keys always at bottom. so we can easy read -> sort -> write, like this

const {path, packageJson} = await readPkg()
const sorted = sortPackageJson(packageJson)
await writePkg(path, sorted)

@keithamus keithamus merged commit 71b28d3 into keithamus:master Dec 30, 2019
@keithamus
Copy link
Owner

🎉 This PR is included in version 1.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@fisker fisker deleted the sort-private-keys branch December 31, 2019 01:09
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.

2 participants