mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 10:01:08 +08:00
25 lines
387 B
Bash
Executable File
25 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
|
|
##
|
|
# Packs:
|
|
# - tns-core-modules
|
|
# inside dist folder
|
|
##
|
|
|
|
set -x
|
|
set -e
|
|
|
|
## Pack tns-core-modules
|
|
(
|
|
|
|
# Aways execute npx tsc from repo root to use the local typescript
|
|
echo 'TypeScript transpile...'
|
|
npx tsc -v
|
|
npx tsc -p "dist/tns-core-modules"
|
|
|
|
|
|
echo 'NPM packing ...'
|
|
cd "dist/tns-core-modules"
|
|
TGZ="$(npm pack)"
|
|
mv "$TGZ" "../$TGZ"
|
|
) |