format-package
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -66,3 +66,3 @@ #!/usr/bin/env node | ||
console.log(); | ||
console.log('Package.json sorted successfully'); | ||
console.log('Package.json formatted successfully'); | ||
} | ||
@@ -69,0 +69,0 @@ |
@@ -13,3 +13,3 @@ // Safety check | ||
throw new Error( | ||
'Something went wrong and some keys were lost - this sort was cancelled and nothing written' | ||
'Something went wrong and some keys were lost - this job was cancelled and nothing written' | ||
); | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "format-package", | ||
"version": "2.0.0", | ||
"description": "Sensible formatting of package.json", | ||
"version": "2.0.1", | ||
"description": "Sensible formatting and ordering of package.json", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "engines": { |
@@ -1,2 +0,2 @@ | ||
# Sort Package | ||
# Format Package | ||
@@ -134,3 +134,3 @@ `package.json` files are notorious for becoming large and overwhelming. When working in teams, this can make it hard to know how to structure the file or where to find certain configurations or scripts - especially since everyone has their own preferences. | ||
```js | ||
const format = require('sort-pkg'); | ||
const format = require('format-package'); | ||
const pkg = require('<path-to-package.json>'); | ||
@@ -137,0 +137,0 @@ const { { defaults: { order: defaultOrder } } = format; |
158509