Skip to content

layout: Node tool hub stays in javascript/private/quality; prettier tier loads only core (part of #10084) #10200

Closed

Description

@TrapsterDK

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

Activity

  1. added
    P2
    model:sonnet
    on Nov 10, 2026
  2. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    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

  3. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    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

  4. 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
  5. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    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.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2model:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions