onnxruntime/tools/ci_build/github/azure-pipelines/templates
Yulong Wang 6b0c97b43f
[js/web] fix typescript type check (#18343)
### Description

This PR fixes the TypeScript type check.

Previously, when I use esbuild to replace webpack (#17745), typescript
typecheck was disabled. This causes a few TypeScript type error checked
in into the code base. This PR fixes the followings:

- Use "Node16" as default "module" value in tsconfig.json, because in
TypeScript v5, `(module == "ES2015" && moduleResolution == "Node16")` is
an invalid combination.
- Set `noUnusedParameters` to true as default. in web override it to
false because multiple code need to be updated ( a following-up PR will
do this )
- set correct project file for 'web/lib/**/*.ts' for ESLint (otherwise
WebGPU types are not populated correctly)
- fix type error in file js/web/lib/wasm/jsep/webgpu/program-manager.ts
- upgrade "@webgpu/types" to latest to fix type error in file
js/web/lib/wasm/jsep/backend-webgpu.ts
- add package script "prebuild" for web to run tsc type check
- add type check in CI yml file
2023-11-10 16:03:38 -08:00
..
jobs Rework/cleanup the C# build infrastructure for nuget packages. (#18127) 2023-11-03 09:05:17 -07:00
stages
android-binary-size-check-stage.yml
android-dump-logs-from-steps.yml
android-java-api-aar-test.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
android-java-api-aar.yml
build-linux-wasm-step.yml
c-api-artifacts-package-and-publish-steps-posix.yml
c-api-artifacts-package-and-publish-steps-windows.yml Add cuda context headers to zip (#18330) 2023-11-09 14:53:58 -08:00
c-api-cpu.yml Rework/cleanup the C# build infrastructure for nuget packages. (#18127) 2023-11-03 09:05:17 -07:00
c-api-linux-cpu.yml
check-cache-stats.yml
clean-agent-build-directory-step.yml
common-variables.yml
compliance.yml
component-governance-component-detection-steps.yml
download-deps.yml Add a build validation for Linux ARM64 cross-compile (#18200) 2023-11-08 13:03:18 -08:00
esrp_nuget.yml
explicitly-defined-final-tasks.yml
flex-downloadPipelineArtifact.yml
get-docker-image-steps.yml
install-appcenter.yml
java-api-artifacts-package-and-publish-steps-posix.yml
linux-build-step-with-cache.yml
linux-ci.yml
linux-cpu-packaging-pipeline.yml Merge aiinfra-linux-ARM64-CPU-2019 and onnxruntime-linux-ARM64-CPU-2019 (#18069) 2023-10-24 13:04:08 -07:00
linux-gpu-tensorrt-packaging-pipeline.yml Change cuda image for tensorRT to the one with cudnn8 (#18102) 2023-10-26 16:28:57 -07:00
linux-wasm-ci.yml fix typo (node)->(browser) in linux-wasm-ci.yml (#18309) 2023-11-07 17:07:40 -08:00
linux-web-init-and-check.yml [js/web] fix typescript type check (#18343) 2023-11-10 16:03:38 -08:00
mac-build-step-with-cache.yml
mac-cpu-packaging-pipeline.yml
mac-cpu-packaging-steps.yml keep symlinks in maven package (#16376) 2023-06-19 09:41:39 +08:00
mac-cpu-packing-jobs.yml Update min macos version (#18251) 2023-11-10 11:08:17 -08:00
mac-esrp-dylib.yml
nodejs-artifacts-package-and-publish-steps-posix.yml
nodejs-artifacts-package-and-publish-steps-windows.yml
ondevice-training-cpu-packaging-pipeline.yml Rework/cleanup the C# build infrastructure for nuget packages. (#18127) 2023-11-03 09:05:17 -07:00
orttraining-linux-gpu-test-ci-pipeline.yml
publish-nuget.yml
py-linux-gpu.yml Change cuda image for tensorRT to the one with cudnn8 (#18102) 2023-10-26 16:28:57 -07:00
py-linux.yml
py-package-smoking-test.yml
py-packaging-linux-test-cpu.yml
py-packaging-linux-test-cuda.yml Change cuda image for tensorRT to the one with cudnn8 (#18102) 2023-10-26 16:28:57 -07:00
py-packaging-selectable-stage.yml
py-packaging-stage.yml Update min macos version (#18251) 2023-11-10 11:08:17 -08:00
py-packaging-training-cuda-stage.yml
py-win-gpu.yml
react-native-ci.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
rocm.yml [ROCm] Add ROCm Debug wheels to private ADO Feeds (#17887) 2023-10-13 10:28:10 +08:00
run-docker-build-steps.yml
set-nightly-build-option-variable-step.yml
set-python-manylinux-variables-step.yml
set-version-number-variables-step.yml
telemetry-steps.yml
upload-code-coverage-data.yml
use-android-emulator.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
use-android-ndk.yml Update NDK to 26.0.10792818 (#17852) 2023-10-12 14:08:43 -07:00
use-xcode-version.yml
validate-package.yml
web-browserstack-ci.yml
web-ci.yml
win-ci.yml
win-esrp-dll.yml
win-wasm-ci.yml Update win-wasm-ci.yml: increase the timeout value (#18023) 2023-10-24 10:50:12 -07:00
win-web-ci.yml [js/web] fix typescript type check (#18343) 2023-11-10 16:03:38 -08:00
win-web-multi-browsers.yml
with-container-registry-steps.yml