Move testing to the publish and deploy script, rename build-release to prepack

This commit is contained in:
Jamie Wong
2025-01-15 12:30:15 -08:00
parent 1e33d9a0c1
commit 35d2ea5f3e
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
},
"scripts": {
"deploy": "./scripts/deploy.sh",
"prepack": "./scripts/build-release.sh",
"prepack": "./scripts/prepack.sh",
"prettier": "prettier --write 'src/**/*.ts' 'src/**/*.tsx'",
"lint": "eslint 'src/**/*.ts' 'src/**/*.tsx'",
"jest": "./scripts/test-setup.sh && jest --runInBand",
@@ -4,12 +4,6 @@ set -euxo pipefail
OUTDIR=`pwd`/dist/release
# Typecheck
node_modules/.bin/tsc --noEmit
# Run unit tests
npm run jest
# Clean out the release directory
rm -rf "$OUTDIR"
mkdir -p "$OUTDIR"
+6
View File
@@ -11,6 +11,12 @@
set -euxo pipefail
# Typecheck
node_modules/.bin/tsc --noEmit
# Run unit tests
npm run jest
if [ $# -lt 1 ]; then
echo "Usage: $0 <minor | patch | version>"
echo "e.g. $0 patch"