joblog="$jobname-ci.log"
parallel -j $jobs --retries $retries \
- "echo Trying {} >> $joblog; npm run mocha -- -c --timeout 30000 --exit --require ./dist/server/tests/register.js --bail {}" \
+ "echo Trying {} >> $joblog; npm run mocha -- -c --timeout 30000 --exit --bail {}" \
::: $files
cat "$joblog" | uniq -c
find $1 -type f -name "*.js" $exception | xargs echo
}
-if [ "$1" = "client" ]; then
+if [ "$1" = "types-package" ]; then
+ npm run generate-types-package 0.0.0
+ npm run tsc -- --noEmit --esModuleInterop packages/types/tests/test.ts
+elif [ "$1" = "client" ]; then
npm run build
feedsFiles=$(findTestFiles ./dist/server/tests/feeds)
runTest "$1" 1 $externalPluginsFiles
elif [ "$1" = "lint" ]; then
- npm run build:server
-
npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts"
npm run swagger-cli -- validate support/doc/api/openapi.yaml