You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
layout: Node tool hub stays in javascript/private/quality; prettier tier loads only core (part of #10084) #10200
Part of #10084. Layout step 1. Rules: docs/design/layout.md, Node tools and Quality code. javascript/ owns every Node tool; there is no markdown, css or graphql package and no second npm hub. #10275 already moved the tools and entry points.
Where
core/quality/tiers/prettier/BUILD.bazel: loads @aspect_rules_js//js:defs.bzl for js_library(name = "standard_json").
javascript/private/quality/bin/BUILD.bazel: prettier_generated depends on that js_library.
cli/plan/src/plan/registry.rs:310: the test hardcodes javascript/private/quality:{family}.bzl.
MODULE.bazel:1662: the single npm.npm_translate_lock(name = "dx_npm_tools").
Fix
Declare the js_library over //core/quality/tiers/prettier:standard.json inside javascript/private/quality/bin; the tier package keeps only exports_files, filegroup and real_source_target.
Add a test next to //core/modules:lang_json_test that fails when a non-dev npm_translate_lock other than dx_npm_tools exists in MODULE.bazel, or when a package.json named dx-node-tools exists outside javascript/private/quality.
Do not move prettier, remark, stylelint, graphql_eslint, gplint or redocly, and do not move their tool rows.
Run //core/quality:core_load_graph_test, //cli/plan:dx_plan_test and the //javascript/private/quality/bin tests.
Audit of origin/main: #10275 moved quality/tools/javascript, quality/families/js*.bzl, tsc.bzl and tsc_report.bzl to javascript/private/quality and typescript/private/quality exists. Remains: split prettier, remark, stylelint, graphql_eslint into markdown/css/graphql packages; typescript-only code into typescript/private/quality (currently only a BUILD.bazel); regenerate MODULE.bazel.lock (@dx_npm_tools entry unchanged). #10052 is still open, so registry.rs label handling is not yet lang.json-driven.
Attempted the prettier/remark/stylelint/graphql_eslint split. Blocked: the .mjs entry points resolve their npm imports by walking up to javascript/private/quality/node_modules, so moving them into markdown/css/graphql packages requires each package to own a package.json, pnpm-lock.yaml and npm_translate_lock hub (MODULE.bazel plus lock regeneration), and the js shard in js.bzl/js_tools.bzl (one TOOLS dict, one generated policy) has to be split per language first. Prettier is used by about 40 languages, so its owning package needs a decision. No changes made.
changed the title [-]layout: js quality tools and entry points move to javascript/private[/-][+]layout: Node tool hub stays in javascript/private/quality; prettier tier loads only core (part of #10084)[/+]on Nov 10, 2026
Decision: nothing moves. The Fix section in the body is final and supersedes the earlier 'needs a decision' comment: javascript/private/quality owns prettier, remark, stylelint, graphql_eslint, gplint and redocly, with the single dx_npm_tools hub. No markdown, css or graphql package, no second package.json.
Build exactly two things:
Move js_library(name = "standard_json") from core/quality/tiers/prettier/BUILD.bazel into javascript/private/quality/bin/BUILD.bazel (srcs //core/quality/tiers/prettier:standard.json), and delete the @aspect_rules_js load from the tier package.
A Rust test next to //core/modules:lang_json_test that fails on a non-dev npm_translate_lock other than dx_npm_tools in MODULE.bazel, or on a package.json named dx-node-tools outside javascript/private/quality.
Proof: the new test, plus //core/quality:core_load_graph_test with the prettier tier removed from its pending list.
Activity
layout: js quality tools and entry points move to javascript/private/…
layout: js quality tools and entry points move to javascript/private/…
layout: js quality tools and entry points move to javascript/private/…
TrapsterDK commentedon Nov 10, 2026
Audit of origin/main: #10275 moved quality/tools/javascript, quality/families/js*.bzl, tsc.bzl and tsc_report.bzl to javascript/private/quality and typescript/private/quality exists. Remains: split prettier, remark, stylelint, graphql_eslint into markdown/css/graphql packages; typescript-only code into typescript/private/quality (currently only a BUILD.bazel); regenerate MODULE.bazel.lock (@dx_npm_tools entry unchanged). #10052 is still open, so registry.rs label handling is not yet lang.json-driven.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
typescript: tsc aspect and report rules move to typescript/private/qu…
TrapsterDK commentedon Nov 10, 2026
Attempted the prettier/remark/stylelint/graphql_eslint split. Blocked: the .mjs entry points resolve their npm imports by walking up to javascript/private/quality/node_modules, so moving them into markdown/css/graphql packages requires each package to own a package.json, pnpm-lock.yaml and npm_translate_lock hub (MODULE.bazel plus lock regeneration), and the js shard in js.bzl/js_tools.bzl (one TOOLS dict, one generated policy) has to be split per language first. Prettier is used by about 40 languages, so its owning package needs a decision. No changes made.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz
[-]layout: js quality tools and entry points move to javascript/private[/-][+]layout: Node tool hub stays in javascript/private/quality; prettier tier loads only core (part of #10084)[/+]TrapsterDK commentedon Nov 10, 2026
Decision: nothing moves. The Fix section in the body is final and supersedes the earlier 'needs a decision' comment:
javascript/private/qualityowns prettier, remark, stylelint, graphql_eslint, gplint and redocly, with the singledx_npm_toolshub. No markdown, css or graphql package, no secondpackage.json.Build exactly two things:
js_library(name = "standard_json")fromcore/quality/tiers/prettier/BUILD.bazelintojavascript/private/quality/bin/BUILD.bazel(srcs//core/quality/tiers/prettier:standard.json), and delete the@aspect_rules_jsload from the tier package.//core/modules:lang_json_testthat fails on a non-devnpm_translate_lockother thandx_npm_toolsinMODULE.bazel, or on apackage.jsonnameddx-node-toolsoutsidejavascript/private/quality.Proof: the new test, plus
//core/quality:core_load_graph_testwith the prettier tier removed from its pending list.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz
javascript: copy standard.json into the bin package for js_library (p…