-
Notifications
You must be signed in to change notification settings - Fork 87
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
Show diff after sorting #48
Labels
Comments
PRs welcome! |
@keithamus The following modifications are expected. Sample Projects
File Contentspackage.json{
"name": "sort-pack-test-root",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "ISC",
"author": "hoge <[email protected]> (https://github.com/hoge)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"colors": "^1.4.0",
"diff": "^5.1.0",
"sort-package-json": "^1.57.0"
}
} project1/package.json{
"author": "hoge <[email protected]> (https://github.com/hoge)",
"main": "index.js",
"name": "sort-pack-test-project1",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "ISC",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
} project2/package.json{
"name": "sort-pack-test-project2",
"version": "1.0.0",
"description": "",
"keywords": [],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"license": "ISC",
"author": "hoge <[email protected]> (https://github.com/hoge)",
"main": "index.js"
} Resultdiff-result.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be nice to show the difference between the original and the formatted package.json.
https://www.npmjs.com/package/diff
The text was updated successfully, but these errors were encountered: