Skip to content

docs: fix stale references (npm scope, moved file, removed script, broken link) - #3190

Open
ZayanKhan-12 wants to merge 4 commits into
salesforce:masterfrom
ZayanKhan-12:docs/fix-stale-references
Open

docs: fix stale references (npm scope, moved file, removed script, broken link)#3190
ZayanKhan-12 wants to merge 4 commits into
salesforce:masterfrom
ZayanKhan-12:docs/fix-stale-references

Conversation

@ZayanKhan-12

Copy link
Copy Markdown

Four commits, each independently revertible:

  1. docs/README-dist.md (shipped as the npm package README by scripts/dist.sh) — the Babel-preset link was scheme-less (npmjs.com/... renders as a broken relative link) and pointed at the @salesforce-ux scope, which 404s on the registry; the package is published under @salesforce/babel-preset-design-system-react (the scope the same paragraph's code sample already uses). Both verified against registry.npmjs.org (404 vs 200).
  2. scripts/npm-link.sh — copies README-dist.md from the repo root, but the file moved to docs/, so npm run link fails at that step; scripts/dist.sh already uses the docs/ path. (bash -n clean.)
  3. tests/README.md — five references to npm run test:snapshot, a script that no longer exists in package.json; updated to the real test:dom-snapshot / test:image-snapshot scripts (the file already references test:dom-snapshot:update correctly elsewhere).
  4. docs/release.md[RELEASENOTES.md](RELEASENOTES.md) resolves to docs/RELEASENOTES.md, which doesn't exist; the file is at the repository root.

Verification (macOS arm64, Node 26): npm ci clean; lint suites exit 0; test:dom-snapshot passes 466/466 (465 snapshots). The test:unit (karma) and test:accessibility suites fail identically on unmodified master in this environment — the puppeteer 9 x64 Chromium can't launch on arm64 ("ChromeHeadless have not captured") — and this PR's diff (docs + one cp path) doesn't touch any tested code path.

Prepared with AI assistance (Claude); every claim mechanically verified as described.

zk-khan and others added 4 commits July 26, 2026 19:55
The link was scheme-less (npmjs.com/... renders as a broken relative
link in the published package README) and pointed at the
@salesforce-ux scope, which 404s on the registry; the package is
published as @salesforce/babel-preset-design-system-react (the scope
the same paragraph's code sample already uses).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
README-dist.md moved to docs/; the copy step fails and breaks
'npm run link'. scripts/dist.sh already uses the docs/ path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
package.json has no test:snapshot script; the snapshot suites are
test:dom-snapshot / test:image-snapshot (with test:dom-snapshot:update,
which this README already references correctly elsewhere).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The link resolves relative to docs/, where no RELEASENOTES.md exists;
the file lives at the repository root.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @zk-khan to sign the Salesforce Inc. Contributor License Agreement.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants