From b969539c838ae3012d7a7040c5e310bb9c834e95 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Dec 2021 13:16:55 +0100 Subject: Fix types dist paths --- scripts/ci.sh | 5 ++++- scripts/release.sh | 2 +- scripts/test.sh | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/ci.sh b/scripts/ci.sh index a628cbced..070a104cc 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -40,7 +40,10 @@ findTestFiles () { find $1 -type f -name "*.js" $exception | xargs echo } -if [ "$1" = "client" ]; then +if [ "$1" = "types" ]; then + npm run generate-types-package + npm run tsc -- --noEmit --esModuleInterop types/tests/test.ts +elif [ "$1" = "client" ]; then npm run build feedsFiles=$(findTestFiles ./dist/server/tests/feeds) diff --git a/scripts/release.sh b/scripts/release.sh index 7681de90d..409a52977 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -121,5 +121,5 @@ rm -f "./client/dist/embed-stats.json" # Release types package npm run generate-types-package -cd types +cd types/dist npm publish --access public diff --git a/scripts/test.sh b/scripts/test.sh index 2dc79c6ce..4d1d8720a 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -2,6 +2,7 @@ set -eu +npm run ci -- types npm run ci -- client npm run ci -- cli-plugin npm run ci -- api-1 -- cgit v1.2.3