fixpack
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -5,2 +5,3 @@ #!/usr/bin/env node | ||
const os = require('os') | ||
const ALCE = require('alce') | ||
@@ -105,14 +106,16 @@ const fs = require('fs') | ||
// write it out | ||
outputString = JSON.stringify(out, null, 2) + '\n' | ||
outputString = JSON.stringify(out, null, 2) + os.EOL | ||
if (outputString !== original) { | ||
fs.writeFileSync(file, outputString, { encoding: 'utf8' }) | ||
if (!config.quiet) | ||
if (!config.quiet) { | ||
console.log(chalk.bold(config.fileName) + chalk.green(' fixed') + '!') | ||
} | ||
} else { | ||
if (!config.quiet) | ||
if (!config.quiet) { | ||
console.log( | ||
chalk.bold(config.fileName) + chalk.green(' already clean') + '!' | ||
) | ||
} | ||
} | ||
} |
{ | ||
"name": "fixpack", | ||
"description": "cli tool that cleans up package.json files.", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -6,0 +6,0 @@ "bin": "./bin/fixpack", |
@@ -112,2 +112,3 @@ # fixpack | ||
- 3.0.4 - OS specific EOL | ||
- 3.0.3 - updates to remove NSP warnings in deps. | ||
@@ -114,0 +115,0 @@ - 2.3.0 - add `wipe` option that sets all dep versions to `*` for easier bulk updating. |
7948
147
131