File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1717echo " ====== RENAMING @angular to @igorminar ======"
1818find ./dist/packages-dist/ -type f -print0 | xargs -0 sed -i ' ' ' s/\@angular/\@igorminar/g'
1919
20- echo " ====== RENAMING @angular to @igorminar ======"
20+ echo " ====== RENAMING \$\$ ANGULAR_VERSION \$\$ to ${VERSION} ======"
2121find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i ' ' " s/\\\$\\\$ ANGULAR_VERSION\\\$\\\$ /${VERSION} /g"
2222
2323for PACKAGE in \
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -ex
4+
5+ cd ` dirname $0 `
6+
7+ VERSION=$1
8+
9+ if [[ " ${VERSION} " == " " ]]
10+ then
11+ echo " Version number required"
12+ exit 1
13+ fi
14+
15+ # ./build.sh
16+
17+ echo " ====== RENAMING \$\$ ANGULAR_VERSION\$\$ to 0.0.0-${VERSION} ======"
18+ find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i ' ' " s/\\\$\\\$ ANGULAR_VERSION\\\$\\\$ /0.0.0-${VERSION} /g"
19+
20+ for PACKAGE in \
21+ core \
22+ compiler \
23+ common \
24+ http \
25+ platform-browser \
26+ platform-browser-dynamic \
27+ platform-server \
28+ router \
29+ testing \
30+ upgrade
31+ do
32+ DESTDIR=./dist/packages-dist/${PACKAGE}
33+ echo " ====== PUBLISHING: ${DESTDIR} ====="
34+ npm publish ${DESTDIR} --access public
35+ done
You can’t perform that action at this time.
0 commit comments