Skip to content

Commit

Permalink
build: rename npm_test buck toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 8, 2024
1 parent 17bf38a commit bb59c87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion toolchains/workspace-pnpm/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export_file(
)

export_file(
name = "run_in_dir.py",
name = "run_npm_test.py",
visibility = ["PUBLIC"],
)

Expand Down
2 changes: 1 addition & 1 deletion toolchains/workspace-pnpm/macros.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def _npm_test_impl(

run_cmd_args = cmd_args([
ctx.attrs._python_toolchain[PythonToolchainInfo].interpreter,
pnpm_toolchain.run_in_dir[DefaultInfo].default_outputs,
pnpm_toolchain.run_npm_test[DefaultInfo].default_outputs,
"--cwd",
cmd_args([build_context.workspace_root, ctx.label.package], delimiter = "/"),
"--bin",
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions toolchains/workspace-pnpm/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WorkspacePnpmToolchainInfo = provider(fields = [
"package_prod_tsc_build_bin",
"build_next_build",
"package_next_bin",
"run_in_dir",
"run_npm_test",
"run_audit",
])

Expand All @@ -26,7 +26,7 @@ def workspace_pnpm_toolchain_impl(ctx) -> list[[DefaultInfo, WorkspacePnpmToolch
package_prod_tsc_build_bin = ctx.attrs._package_prod_tsc_build_bin,
build_next_build = ctx.attrs._build_next_build,
package_next_bin = ctx.attrs._package_next_bin,
run_in_dir = ctx.attrs._run_in_dir,
run_npm_test = ctx.attrs._run_npm_test,
run_audit = ctx.attrs._run_audit,
)
]
Expand Down Expand Up @@ -58,8 +58,8 @@ workspace_pnpm_toolchain = rule(
"_package_next_bin": attrs.dep(
default = "toolchains//workspace-pnpm:package_next_bin.py",
),
"_run_in_dir": attrs.dep(
default = "toolchains//workspace-pnpm:run_in_dir.py",
"_run_npm_test": attrs.dep(
default = "toolchains//workspace-pnpm:run_npm_test.py",
),
"_run_audit": attrs.dep(
default = "toolchains//workspace-pnpm:run_audit.py",
Expand Down

0 comments on commit bb59c87

Please sign in to comment.