Skip to content

[lexical-website] Documentation Update: correct five stale facts in the maintainers guide - #9226

Merged
etrepum merged 1 commit into
meta:mainfrom
potatowagon:docs-maintainers-guide
Sep 24, 2026
Merged

etrepum merged 1 commit into
meta:mainfrom
potatowagon:docs-maintainers-guide

Conversation

@potatowagon

Copy link
Copy Markdown
Contributor

Description

Five statements in maintainers-guide.md no longer match the repo:

  1. packages/lexical-test-utils / @lexical/test-utils is listed as a
    private workspace package.
    The directory does not exist, and the string
    appears nowhere else in the repo. The entry is removed.
  2. The generate-node-json output table lists four modules; the generator
    emits eight
    , and the packages/lexical row omits ElementNode.
  3. "Create a local ${npm_package_version}__release branch" — the script
    creates ${CHANNEL}__release. The version-named branch exists only as a
    remote push target, and only when the channel is not nightly.
  4. extract-codes and update-changelog are listed as unconditional
    postversion steps
    (with the changelog qualified only as "if it's not a
    prerelease"). Both run only when CHANNEL === 'latest', so a next or
    nightly bump skips them as well.
  5. "The top-level package.json uses pnpm workspaces to configure the
    monorepo."
    The root package.json has no workspaces field; pnpm reads
    pnpm-workspace.yaml.

Test plan

Documentation-only change (markdown is excluded from prettier via
.prettierignore), so the checks are against the repo and the release script.

Before

$ grep -n "lexical-test-utils" packages/lexical-website/docs/maintainers-guide.md
27:* `packages/lexical-test-utils` - `@lexical/test-utils`, private React

$ ls -d packages/lexical-test-utils
ls: packages/lexical-test-utils: No such file or directory
$ grep -rn "@lexical/test-utils" packages/ scripts/ | grep -v lexical-website | wc -l
0

$ grep -c "GeneratedJSON.ts\`" packages/lexical-website/docs/maintainers-guide.md
4
$ grep -c "file: 'packages/" scripts/shared/generateNodeJSONManifest.mjs
8

$ grep -n "npm_package_version}__release\|extract-codes" packages/lexical-website/docs/maintainers-guide.md
386:- Create a local `${npm_package_version}__release` branch
390:- `pnpm run extract-codes` to extract the error codes

$ sed -n '39,52p' scripts/npm/postversion.mjs
  const commands = [
    // Create or force update the channel branch to build the docs site from
    ['git', 'checkout', '-B', `${CHANNEL}__release`],
    ...
    // Extract error codes and update changelog, but only in production
    ...(CHANNEL === 'latest'
      ? [`pnpm run extract-codes`, `pnpm run update-changelog`]
      : []),

$ python3 -c "import json;print('workspaces' in json.load(open('package.json')))"
False

After

$ grep -c "lexical-test-utils" packages/lexical-website/docs/maintainers-guide.md
0

$ grep -c "GeneratedJSON.ts\`" packages/lexical-website/docs/maintainers-guide.md
8

$ grep -n "CHANNEL}__release" packages/lexical-website/docs/maintainers-guide.md
386:- Create a local `${CHANNEL}__release` branch (the version-named

$ sed -n '11,13p' packages/lexical-website/docs/maintainers-guide.md
The monorepo is configured with
[pnpm workspaces](https://pnpm.io/workspaces); the set of workspace
packages is declared in the top-level `pnpm-workspace.yaml`.

The eight module rows and their classes are taken from the entries/file
pairs in scripts/shared/generateNodeJSONManifest.mjs:42-88; the four
previously-undocumented outputs (lexical-list, lexical-table,
lexical-code-core, lexical-react/src/shared) all exist on disk. The
remote-branch behaviour is scripts/npm/postversion.mjs:66-73, and the
workspace list is pnpm-workspace.yaml:1-5.

…he maintainers guide

## Description

Five statements in `maintainers-guide.md` no longer match the repo:

1. **`packages/lexical-test-utils` / `@lexical/test-utils` is listed as a
   private workspace package.** The directory does not exist, and the string
   appears nowhere else in the repo. The entry is removed.
2. **The `generate-node-json` output table lists four modules; the generator
   emits eight**, and the `packages/lexical` row omits `ElementNode`.
3. **"Create a local `${npm_package_version}__release` branch"** — the script
   creates `${CHANNEL}__release`. The version-named branch exists only as a
   remote push target, and only when the channel is not `nightly`.
4. **`extract-codes` and `update-changelog` are listed as unconditional
   postversion steps** (with the changelog qualified only as "if it's not a
   prerelease"). Both run only when `CHANNEL === 'latest'`, so a `next` or
   `nightly` bump skips them as well.
5. **"The top-level `package.json` uses pnpm workspaces to configure the
   monorepo."** The root `package.json` has no `workspaces` field; pnpm reads
   `pnpm-workspace.yaml`.

## Test plan

Documentation-only change (markdown is excluded from prettier via
`.prettierignore`), so the checks are against the repo and the release script.

### Before

```
$ grep -n "lexical-test-utils" packages/lexical-website/docs/maintainers-guide.md
27:* `packages/lexical-test-utils` - `@lexical/test-utils`, private React

$ ls -d packages/lexical-test-utils
ls: packages/lexical-test-utils: No such file or directory
$ grep -rn "@lexical/test-utils" packages/ scripts/ | grep -v lexical-website | wc -l
0

$ grep -c "GeneratedJSON.ts\`" packages/lexical-website/docs/maintainers-guide.md
4
$ grep -c "file: 'packages/" scripts/shared/generateNodeJSONManifest.mjs
8

$ grep -n "npm_package_version}__release\|extract-codes" packages/lexical-website/docs/maintainers-guide.md
386:- Create a local `${npm_package_version}__release` branch
390:- `pnpm run extract-codes` to extract the error codes

$ sed -n '39,52p' scripts/npm/postversion.mjs
  const commands = [
    // Create or force update the channel branch to build the docs site from
    ['git', 'checkout', '-B', `${CHANNEL}__release`],
    ...
    // Extract error codes and update changelog, but only in production
    ...(CHANNEL === 'latest'
      ? [`pnpm run extract-codes`, `pnpm run update-changelog`]
      : []),

$ python3 -c "import json;print('workspaces' in json.load(open('package.json')))"
False
```

### After

```
$ grep -c "lexical-test-utils" packages/lexical-website/docs/maintainers-guide.md
0

$ grep -c "GeneratedJSON.ts\`" packages/lexical-website/docs/maintainers-guide.md
8

$ grep -n "CHANNEL}__release" packages/lexical-website/docs/maintainers-guide.md
386:- Create a local `${CHANNEL}__release` branch (the version-named

$ sed -n '11,13p' packages/lexical-website/docs/maintainers-guide.md
The monorepo is configured with
[pnpm workspaces](https://pnpm.io/workspaces); the set of workspace
packages is declared in the top-level `pnpm-workspace.yaml`.
```

The eight module rows and their classes are taken from the `entries`/`file`
pairs in `scripts/shared/generateNodeJSONManifest.mjs:42-88`; the four
previously-undocumented outputs (`lexical-list`, `lexical-table`,
`lexical-code-core`, `lexical-react/src/shared`) all exist on disk. The
remote-branch behaviour is `scripts/npm/postversion.mjs:66-73`, and the
workspace list is `pnpm-workspace.yaml:1-5`.
@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexical Ready Ready Preview Sep 24, 2026 4:48pm UTC
lexical-playground Ready Ready Preview Sep 24, 2026 4:48pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 24, 2026
@etrepum
etrepum added this pull request to the merge queue Sep 24, 2026
Merged via the queue into meta:main with commit 771d7ae Sep 24, 2026
42 checks passed
@etrepum etrepum mentioned this pull request Sep 28, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical — 99fde5f0 Deployed Sep 24, 2026 by vercel[bot]
Preview – lexical-playground — 99fde5f0 Deployed Sep 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants