1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-05 10:18:09 +09:00
hotomoe/.travis/shapeup.js

14 lines
351 B
JavaScript
Raw Normal View History

'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)
})
})