Skip to main content

pnpm-format

Format the codebase with pnpm and recover from common formatting failures.

Ir a la instalación

Datos de origen

Repositorio
microsoft/typespec
Última actividad en el origen
25 de febrero de 2026 a las 22:02
Idioma detectado de SKILL.md
inglés
Estrellas
5872
Forks
399

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
pnpm-format
description
Format the codebase with pnpm and recover from common formatting failures.
# Format code with pnpm Use this skill any time formatting is required in the TypeSpec repo. Do not assume formatting happens automatically; always run `pnpm format` following this guidance. ## Preconditions - Command must run from the repository root (where `package.json` and `pnpm-workspace.yaml` live). - Dependencies must be installed. ## Steps 1. Confirm you are at the repo root. 2. If `node_modules` are missing or `pnpm` complains about missing packages, run: ```bash pnpm install ``` 3. Run the formatter: ```bash pnpm format ``` 4. If the command fails with `ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND`, you are not at the repo root. `cd` to the root and retry. 5. If `pnpm format` exits with a non-zero code but prints a list of changed files, re-run `pnpm format` once to ensure a clean exit. ## Notes - Do not cancel the command; formatting may take about a minute.
Ver en GitHub