File tree 2 files changed +0
-18
lines changed
2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -75,18 +75,6 @@ function prepare {
75
75
replaceJsonProp " bower.json" " angular.*" " .*" " $NEW_VERSION "
76
76
replaceJsonProp " package.json" " version" " .*" " $NEW_VERSION "
77
77
replaceJsonProp " package.json" " angular.*" " .*" " $NEW_VERSION "
78
- deleteJsonProp " package.json" " main"
79
-
80
- echo " -- Adding CommonJS index file"
81
- if [ -f " index.js" ]
82
- then
83
- rm index.js
84
- fi
85
-
86
- touch index.js
87
- echo " require('./$repo ');" >> index.js
88
- echo " " >> index.js
89
- echo " module.exports = $repo ;" >> index.js
90
78
91
79
git add -A
92
80
Original file line number Diff line number Diff line change @@ -207,12 +207,6 @@ function replaceJsonProp {
207
207
replaceInFile $1 '"(' $2 ')"[ ]*:[ ]*"' $3 '"' '"\1": "' $4 '"'
208
208
}
209
209
210
- # deleteJsonProp(jsonFile, property)
211
- # - restriction: property needs to be on a single line!
212
- function deleteJsonProp {
213
- sed -i '' -e /\" $2 \" \:/d $1
214
- }
215
-
216
210
# replaceInFile(file, findPattern, replacePattern)
217
211
function replaceInFile {
218
212
sed -i . tmp -E "s/$2/$3/" $1
You can’t perform that action at this time.
0 commit comments