Files
NativeScript/tools/scripts/pack-core.sh

25 lines
368 B
Bash
Executable File

#!/bin/bash
##
# Prepares the tns-platform-declarations and @nativescript/core packages inside dist folder
##
set -x
set -e
DIST=dist;
ROOT_DIR=$(cd `dirname $0` && pwd)/..;
cd "$ROOT_DIR"
(
cd "$DIST/tns-platform-declarations"
TGZ="$(npm pack)"
mv "$TGZ" "../$TGZ"
)
(
cd "$DIST/nativescript-core"
TGZ="$(npm pack)"
mv "$TGZ" "../$TGZ"
)