com um clique
debugging
Debugging (source maps, cache, test failures)
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Debugging (source maps, cache, test failures)
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Coding patterns and conventions (package design, types, DI, docs)
Creating a new package in the monorepo
Running CI locally with Dagger
DevContainer runtimes, CLI tools, and version parity with Dagger
Installing a package dependency
Linting and formatting (ESLint, Biome, auto-fix)
| name | debugging |
| description | Debugging (source maps, cache, test failures) |
Reference:
../../../nx.json· Node.js debugging
Source maps are enabled everywhere. Set NODE_OPTIONS=--enable-source-maps to get TypeScript stack traces from compiled JS:
NODE_OPTIONS=--enable-source-maps node ./dist/index.js
The mocha-unit-test and mocha-integration-test targets already set this automatically.
If a target seems to return stale results, bypass the cache:
nx run <project>:<target> --skipNxCache
Clear the entire local cache:
nx reset
nx run <project>:<target> --verbose # show stack traces and detailed logs
Always use nx show project to see the actual resolved config — some targets are inferred by plugins and won't appear in project.json:
nx show project <project> --json
nx show project <project> --json | jq '.targets.<target>'
Run a single test file directly (skip Nx overhead):
cd <project-dir>
NODE_OPTIONS=--enable-source-maps mocha './dist/tests/unit/my.spec.js'
Run with a filter to target specific tests:
mocha './dist/tests/unit/**/*.spec.js' --grep "my test name"
nx run <project>:typechecknx run <project>:check:lintnx run <project>:check:formatbarrel --ci (from project dir)Coverage reports are at .coverage/project/<name>/report/index.html. Open in a browser to see which lines/branches are uncovered.
To rerun coverage without clearing existing data:
nx run <project>:mocha-unit-test --skipNxCache
nx run <project>:mocha-integration-test --skipNxCache
nx run <project>:coverage-report
Visualize the full dependency graph to understand task ordering:
nx graph # open in browser
nx graph --file=graph.json # export to JSON
nx affected:graph # show only affected projects
ESLint caches results in .eslintcache. If you see stale lint results:
nx run <project>:eslint --skipNxCache
This repo is designed for use in the DevContainer. Outside it, tools like Node, PNPM, Dagger, and global binaries may not be on PATH as expected.
If a command is not found, check:
leyman/main/node_modules/.bin on your PATH? (it should be automatically via PNPM workspace setup)