Skip to content

Commit

Permalink
chore: update rules_js rules
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Apr 16, 2023
1 parent 3d03554 commit 3b2069f
Show file tree
Hide file tree
Showing 7 changed files with 704 additions and 269 deletions.
39 changes: 18 additions & 21 deletions WORKSPACE
Expand Up @@ -19,9 +19,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file"
# rules_js
http_archive(
name = "aspect_rules_js",
sha256 = "c4a5766a45dff25b2eb1789d7a2decfda81b281fc88350d24687620c37fefb25",
strip_prefix = "rules_js-1.14.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.14.0.tar.gz",
sha256 = "aea8d12bdc4b40127e57fb3da5b61cbb17e969e7786471a71cbff0808c600bcb",
strip_prefix = "rules_js-1.24.1",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.24.1/rules_js-v1.24.1.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
Expand Down Expand Up @@ -75,9 +75,9 @@ http_file(
# resolve transitive dep
http_archive(
name = "aspect_rules_esbuild",
sha256 = "f9b5bf16251e3e4e127337ef968e6a398c9a4f353f1730e6c7ff6c9a8981e858",
strip_prefix = "rules_esbuild-0.13.4",
url = "https://github.com/aspect-build/rules_esbuild/archive/refs/tags/v0.13.4.tar.gz",
sha256 = "2ea31bd97181a315e048be693ddc2815fddda0f3a12ca7b7cc6e91e80f31bac7",
strip_prefix = "rules_esbuild-0.14.4",
url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.14.4/rules_esbuild-v0.14.4.tar.gz",
)

load("@aspect_rules_esbuild//esbuild:dependencies.bzl", "rules_esbuild_dependencies")
Expand All @@ -95,9 +95,9 @@ esbuild_register_toolchains(
# Typescript
http_archive(
name = "aspect_rules_ts",
sha256 = "e81f37c4fe014fc83229e619360d51bfd6cb8ac405a7e8018b4a362efa79d000",
strip_prefix = "rules_ts-1.0.4",
url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.4.tar.gz",
sha256 = "8eb25d1fdafc0836f5778d33fb8eaac37c64176481d67872b54b0a05de5be5c0",
strip_prefix = "rules_ts-1.3.3",
url = "https://github.com/aspect-build/rules_ts/releases/download/v1.3.3/rules_ts-v1.3.3.tar.gz",
)

##################
Expand All @@ -114,12 +114,18 @@ rules_ts_dependencies(
ts_version_from = "//:package.json",
)

load("@aspect_bazel_lib//lib:repositories.bzl", "register_copy_directory_toolchains", "register_copy_to_directory_toolchains")

register_copy_directory_toolchains()

register_copy_to_directory_toolchains()

# Jest
http_archive(
name = "aspect_rules_jest",
sha256 = "0ea90fc5ed2b657f22c447494b2bfc563008b47900974b1e092e092cb1999a01",
strip_prefix = "rules_jest-0.14.4",
url = "https://github.com/aspect-build/rules_jest/archive/refs/tags/v0.14.4.tar.gz",
sha256 = "52dc08fd252add240124ef7ccc46df3a505121758dfb96578a3d5f2ebb4c2b40",
strip_prefix = "rules_jest-0.18.1",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.18.1/rules_jest-v0.18.1.tar.gz",
)

####################
Expand All @@ -134,15 +140,6 @@ load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")

rules_jest_dependencies()

# Fetches the npm packages for jest-cli.
load("@aspect_rules_jest//jest:repositories.bzl", "jest_repositories")

jest_repositories(name = "jest")

load("@jest//:npm_repositories.bzl", jest_npm_repositories = "npm_repositories")

jest_npm_repositories()

# Setup skylib
http_archive(
name = "bazel_skylib",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -169,6 +169,8 @@
},
"author": "Seth Bertalotto <sbertal@verizonmedia.com>",
"dependencies": {
"jest-cli": "^29.5.0",
"jest-junit": "^16.0.0",
"magic-string": "^0.29.0"
}
}
1 change: 1 addition & 0 deletions packages/cli/integration-tests/BUILD
Expand Up @@ -80,6 +80,7 @@ aspect_jest_test(
["compile/**/*"],
exclude = ["compile/__snapshots__/**/*"],
),
node_modules="//:node_modules",
# To update snapshots run,
# bazel run //packages/cli/integration-tests:integration-compile_update_snapshots
snapshots = glob(["compile/__snapshots__/*.snap"]),
Expand Down
2 changes: 1 addition & 1 deletion packages/intl-locale/character-orders.generated.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/intl-locale/numbering-systems.generated.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/swc-plugin-experimental/BUILD
Expand Up @@ -45,5 +45,6 @@ aspect_jest_test(
) + glob(
["tests/fixtures/**/*"],
),
node_modules="//:node_modules",
snapshots = glob(["tests/__snapshots__/*.snap"])
)

0 comments on commit 3b2069f

Please sign in to comment.