Skip to content

docs: replace two npm scripts this package.json does not define - #7

Merged
docxology merged 1 commit into
mainfrom
docs/npm-scripts-that-exist-20261102
Nov 2, 2026
Merged

docxology merged 1 commit into
mainfrom
docs/npm-scripts-that-exist-20261102

Conversation

@docxology

Copy link
Copy Markdown
Collaborator

The TypeScript folder's testing and linting examples named two scripts the
folder's manifest does not define.

check result
0_CONTEXT/Computer_Languages/TypeScript/package.json scripts build, demo, dev, lint, start, test, type-check
npm run test:coverage (not defined) replaced with npm test -- --coverage
npm run lint:fix (not defined) replaced with npm run lint -- --fix
grep -rn "npm run test:coverage|npm run lint:fix" over the repository 0 hits after the change
npm test, npm run lint, npm run type-check defined; left as they were

The two replacements pass the flag through npm's -- argument separator, which
the manifest's scripts (jest, eslint src/**/*.ts) accept. Both comments now
name the missing script so a reader is not left looking for it.

The TypeScript folder's testing and linting blocks told a reader to run
`npm run test:coverage` and `npm run lint:fix`. Neither script exists in
0_CONTEXT/Computer_Languages/TypeScript/package.json, which defines
build, demo, dev, lint, start, test, type-check.

Both lines now use the flag form that works with the manifest
(`npm test -- --coverage`, `npm run lint -- --fix`) and name the missing
script so the reader is not left looking for it.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@docxology
docxology merged commit deaf27f into main Nov 2, 2026
3 checks passed
@docxology
docxology deleted the docs/npm-scripts-that-exist-20261102 branch November 3, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant