Skip to main content
Version: 1.2.x

repositories

Declare runtime dependencies

These are needed for local dev, and users must install them as well. See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies

Macros and Functions

rules_ts_dependencies

Dependencies needed by users of rules_ts.

To skip fetching the typescript package, define repository called npm_typescript before calling this.

Example usage (generated):

load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")

rules_ts_dependencies(
)

ts_version_from

Optional. Default: None

label of a json file (typically package.json) which declares an exact typescript version in a dependencies or devDependencies property. Exactly one of ts_version or ts_version_from must be set.

ts_version

Optional. Default: None

version of the TypeScript compiler. Exactly one of ts_version or ts_version_from must be set.

ts_integrity

Optional. Default: None

integrity hash for the npm package. By default, uses values mirrored into rules_ts. For example, to get the integrity of version 4.6.3 you could run curl --silent https://registry.npmjs.org/typescript/4.6.3 | jq -r '.dist.integrity'