sort-package-json
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -122,4 +122,7 @@ #!/usr/bin/env node | ||
var packageJson = fs.readFileSync(packageJsonPath, 'utf8'); | ||
fs.writeFileSync(packageJsonPath, sortPackageJson(packageJson), 'utf8'); | ||
console.log('Ok, your package.json is sorted'); | ||
var sorted = sortPackageJson(packageJson); | ||
if (sorted !== packageJson) { | ||
fs.writeFileSync(packageJsonPath, sorted, 'utf8'); | ||
console.log('Ok, your package.json is sorted'); | ||
} | ||
} |
{ | ||
"name": "sort-package-json", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Sort an Object or package.json based on the well-known package.json keys", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7086
127