File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
swagger-editor-dist-package Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 33# Parameter Expansion: http://stackoverflow.com/questions/6393551/what-is-the-meaning-of-0-in-a-bash-script
44cd " ${0%/* } "
55
6- # Get UI version
6+ # Get Editor version
77EDITOR_VERSION=$( node -p " require('../package.json').version" )
88
9- # Replace our version placeholder with UI's version
10- sed -i " s|\$\$ VERSION|$EDITOR_VERSION |g" package.json
9+ # Replace our version placeholder with Editor's version
10+ sed -i.bak " s/\$\$ VERSION/$EDITOR_VERSION /g" package.json
11+ rm package.json.bak
1112
1213# Copy Editor's dist files to our directory
1314cp ../dist/* .
1415
16+ # Copy index.html
17+ cp ../index.html .
18+
19+ # Rewire `./dist` references to `.` in index.html
20+ sed -i.bak " s/\.\/dist/\./g" index.html
21+ rm index.html.bak
22+
1523if [ " $PUBLISH_DIST " = " true" ] || [ " $TRAVIS " = " true" ] ; then
1624 npm publish .
1725else
You can’t perform that action at this time.
0 commit comments