mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
a533c8b75e
remove devDependencies from package.json. resolve #495.
13 lines
348 B
JavaScript
13 lines
348 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, 4) + '\n', err => {
|
|
if (err) process.exit(3)
|
|
})
|
|
})
|