aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-24 13:16:55 +0100
committerChocobozzz <me@florianbigard.com>2021-12-24 13:28:33 +0100
commitb969539c838ae3012d7a7040c5e310bb9c834e95 (patch)
tree821495c8457b19f5595c73e5778e30f6bc6a6cc7 /scripts
parent499be42ca2e03d73fef2f9501d121d830137bd6b (diff)
downloadPeerTube-b969539c838ae3012d7a7040c5e310bb9c834e95.tar.gz
PeerTube-b969539c838ae3012d7a7040c5e310bb9c834e95.tar.zst
PeerTube-b969539c838ae3012d7a7040c5e310bb9c834e95.zip
Fix types dist paths
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci.sh5
-rwxr-xr-xscripts/release.sh2
-rwxr-xr-xscripts/test.sh1
3 files changed, 6 insertions, 2 deletions
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 () {
40 find $1 -type f -name "*.js" $exception | xargs echo 40 find $1 -type f -name "*.js" $exception | xargs echo
41} 41}
42 42
43if [ "$1" = "client" ]; then 43if [ "$1" = "types" ]; then
44 npm run generate-types-package
45 npm run tsc -- --noEmit --esModuleInterop types/tests/test.ts
46elif [ "$1" = "client" ]; then
44 npm run build 47 npm run build
45 48
46 feedsFiles=$(findTestFiles ./dist/server/tests/feeds) 49 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"
121 121
122# Release types package 122# Release types package
123npm run generate-types-package 123npm run generate-types-package
124cd types 124cd types/dist
125npm publish --access public 125npm 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 @@
2 2
3set -eu 3set -eu
4 4
5npm run ci -- types
5npm run ci -- client 6npm run ci -- client
6npm run ci -- cli-plugin 7npm run ci -- cli-plugin
7npm run ci -- api-1 8npm run ci -- api-1