Loading jobs/typescript_compile/typescript_compile.yml +3 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,9 @@ typescript_compile: - if [ -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/package-lock.json" ]; then npm install; fi # In case the user doesn't have a valid tsconfig.json # We use the initialize from TSC to do so - if [ ! -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/tsconfig.json" ]; then - | if [ ! -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/tsconfig.json" ] && [ ! -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/jsconfig.json" ]; then - cd ${CI_PROJECT_DIR}/${PROJECT_ROOT} - tsc --init - fi Loading Loading
jobs/typescript_compile/typescript_compile.yml +3 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,9 @@ typescript_compile: - if [ -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/package-lock.json" ]; then npm install; fi # In case the user doesn't have a valid tsconfig.json # We use the initialize from TSC to do so - if [ ! -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/tsconfig.json" ]; then - | if [ ! -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/tsconfig.json" ] && [ ! -f "${CI_PROJECT_DIR}/${PROJECT_ROOT}/jsconfig.json" ]; then - cd ${CI_PROJECT_DIR}/${PROJECT_ROOT} - tsc --init - fi Loading