mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 20:43:10 +02:00
8d5adfbdd7
original package.json indented with tabs, but shapeup indent with 4 space.
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
'use strict'
|
|
|
|
const fs = require('fs')
|
|
const filename = process.argv[2] || 'package.json'
|
|
|
|
fs.readFile(filename, (err, data) => {
|
|
if (err) process.exit(2)
|
|
const object = JSON.parse(data)
|
|
delete object.devDependencies
|
|
fs.writeFile(filename, JSON.stringify(object, null, '\t') + '\n', err => {
|
|
if (err) process.exit(3)
|
|
})
|
|
})
|