Make output dir an argument to prepack.sh
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"deploy": "./scripts/deploy.sh",
|
||||
"prepack": "./scripts/prepack.sh",
|
||||
"prepack": "./scripts/prepack.sh \"$(pwd)/dist/release\"",
|
||||
"prettier": "prettier --write 'src/**/*.ts' 'src/**/*.tsx'",
|
||||
"lint": "eslint 'src/**/*.ts' 'src/**/*.tsx'",
|
||||
"jest": "./scripts/test-setup.sh && jest --runInBand",
|
||||
|
||||
+6
-1
@@ -2,7 +2,12 @@
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
OUTDIR=`pwd`/dist/release
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 <output_directory>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OUTDIR="$1"
|
||||
|
||||
# Clean out the release directory
|
||||
rm -rf "$OUTDIR"
|
||||
|
||||
Reference in New Issue
Block a user