mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-07-16 00:00:04 +08:00
14 lines
463 B
Bash
14 lines
463 B
Bash
CORE="./dist/packages-dist/@ionic-native/core/"
|
|
PLUGINS="./src/@ionic-native/plugins/*"
|
|
|
|
BUILD_PLUGINS_DIST='dist/packages-dist/@ionic-native/plugins'
|
|
|
|
echo "Publishing @ionic-native/core"
|
|
npm publish "$CORE" --access public
|
|
# For each plugin, replace the values in tsconfig w/ the appropriate ones for this plugin
|
|
for d in $PLUGINS ; do
|
|
BASE=`basename $d`
|
|
echo "Publishing @ionic-native/$BASE"
|
|
npm publish "$BUILD_PLUGINS_DIST/$BASE/" --access public
|
|
done
|