Skip to content
Snippets Groups Projects
Commit dd7bf7c1 authored by otofune's avatar otofune
Browse files

[travis] shapeup package.json in release

remove devDependencies from package.json.
resolve #495.
parent df8c2868
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ chmod 600 ~/.ssh/id_rsa
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
git checkout -b release
cp -f ./.travis/.gitignore-release .gitignore
node ./.travis/shapeup.js
git add --all
git rm --cached `git ls-files --full-name -i --exclude-standard`
git config --global user.email "AyaMorisawa4869@gmail.com"
......
'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)
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment