mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore(core): monorepo, esm targeting, improved management (#8707)
This commit is contained in:
24
tools/scripts/pack-core.sh
Executable file
24
tools/scripts/pack-core.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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"
|
||||
)
|
||||
Reference in New Issue
Block a user