← Catalog

@meowshed/meow-typescript

Detects a TypeScript and JavaScript package from the package.json git tracks, reads the package manager it declares, prints a stages table bound from the tools it configured and run through that manager, reports a stage that runs a tool ou…

Package

Install

Install with PiG

pig install npm:@meowshed/meow-typescript

Install with Pi

pi install npm:@meowshed/meow-typescript
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "skills"
  ],
  "extensions": [
    "extensions/bin.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.1 (README.md). PiG does not review it.


reader: someone installing or running meow-typescript on Pi answers: what meow-typescript provides, what it adds to a session and how to install it kind: reference describes: [@meowshed/meow-typescript@0.2.1]

@meowshed/meow-typescript

Detects a TypeScript and JavaScript package from the package.json git tracks, reads the package manager it declares, prints a stages table bound from the tools it configured and run through that manager, reports a stage that runs a tool outside the manager or leaves a linter or compiler setting without effect, and carries what a reviewer of TypeScript checks that no command reports, writing no file. Distributed as a Pi package.

Install it

pi install npm:@meowshed/meow-typescript

The paw executable ships with @meowshed/meow-core alone (REQ-4612): this package's launchers run their subcommands through it, so install the core package beside this one for the binary-backed checks. Without it, every check reports unrun and lets the command through.

pi install npm:@meowshed/meow-core   # carries the binary the launchers run

Installing from this repository's checkout is the development install: it loads the package in place and runs no lifecycle script.

The package manager

The program reads the manager from what you committed, and never from what is installed. The packageManager field of the package.json, or of the nearest one above it, names it as npm, pnpm, yarn or bun. A lockfile in the package's directory, or in the nearest directory above it, names it too: package-lock.json, pnpm-lock.yaml, yarn.lock, and bun.lock or bun.lockb. The field decides where it names a manager one of the lockfiles locks, and a lone lockfile decides where the field is absent. In every other case the manager is unresolved and bind prints every stage as unresolved with the reason:

CaseReason printed
Neither a field nor a lockfileno package manager declared: commit a lockfile or set packageManager
The field names another toolpackageManager names <name>, which this pack doesn't know
The field and the lockfiles disagree<file> declares <name>, and <lockfile> locks <name>
Two lockfiles and no field<lockfile> and <lockfile> both lock this package; declare packageManager

A tool runs through the manager as npm exec -- <tool>, pnpm exec <tool>, yarn run <tool> or bun x <tool>. npm exec and bun x fetch a tool that no dependency of yours provides, so bind adds a comment saying so under the npm and bun tables.

Bind your stages

meow-typescript bind [<directory>] prints a [stages] table for the package in <directory>, or the root, to paste into the profile file its first line names. It never writes the profile itself:

[stages]
format = "pnpm exec prettier --check ."
lint = "pnpm exec eslint --max-warnings 0 ."
check = "pnpm exec tsc --noEmit"
test = "pnpm exec vitest run"
build = "pnpm run build"

Each stage takes the first binding that applies:

StageBound toWhen
formatprettier --check .A .prettierrc*, a prettier.config.*, or a prettier key or dependency
formatnothing, printed as unboundA biome.json or biome.jsonc, whose biome ci in lint checks formatting
lintbiome ci --error-on-warnings .A biome.json or biome.jsonc
lintoxlint --deny-warnings && eslint --max-warnings 0 .An oxlint configuration and an eslint.config.* file
lintoxlint --deny-warningsA .oxlintrc.json, .oxlintrc.jsonc, oxlint.config.ts or oxlint.config.mts
linteslint --max-warnings 0 .An eslint.config.js, .mjs, .cjs, .ts, .mts or .cts
checktsc --noEmitA tsconfig.json beside the package.json
testvitest runA vitest.config.* file or a vitest dependency
testjestA jest.config.* file, a jest key or a jest dependency
testnode --testA test script that runs node --test
build<manager> run buildA build script in the package.json

The --max-warnings 0 and --deny-warnings flags make a warning fail the stage, because without them both linters exit 0 on a file full of warnings. --noEmit keeps tsc from writing JavaScript beside your sources. The released TypeScript 7 compiler is tsc, and tsgo names the preview binary, so no stage uses it. node --test is the one command not run through the manager, because node is the runtime and no package.

A stage with no binding is a comment naming what the program looked for. Where you configured two tools for one stage, the stage binds the first in this table and a comment under it names the other with its file. An oxlint configuration beside an ESLint one binds both, because oxlint is designed to run beside ESLint. An .eslintrc* binds nothing, and a comment says ESLint 10 no longer reads it. Where the root holds a turbo.json or an nx.json, a comment names it as the orchestrator that runs a task across the workspace's packages, which the pack binds none of. bind prints nothing for a stage your profile already declares, names a mise.toml or a Taskfile.yml with the runner's pack, meow-mise or meow-gotask, and exits 0 once it prints the table.

Check your settings

meow-typescript check [<directory>] reads the stages of the profile that governs the package and reports each setting that is missing or has no effect, one line for each finding, and exits 1 on any:

LineWhen
<stage> runs <tool> outside <manager>: write <prefix> <tool>A stage runs Prettier, ESLint, oxlint, Biome, tsc, Vitest or Jest by its bare name
<stage> runs <runner>, and <file> declares <manager>A stage runs npm, npx, pnpm, yarn, bun or bunx of another manager
<lockfile> and <lockfile> both lock this packageTwo or more lockfiles apply to the package
eslint reads no configuration: ESLint 10 ignores <file>A stage runs ESLint, an .eslintrc* applies and no eslint.config.* does
eslint ignores <file>: ESLint 10 reads <config> aloneA stage runs ESLint, and both an .eslintrc* and an eslint.config.* apply
eslint exits 0 on warnings: pass --max-warnings 0A stage runs ESLint with no --max-warnings
oxlint exits 0 on warnings: pass --deny-warningsA stage runs oxlint with neither --deny-warnings nor --max-warnings
tsc writes JavaScript into the tree: pass --noEmitA format, lint, check or test stage runs tsc with no --noEmit, and the tsconfig.json sets no noEmit
<stage> runs tsgo, the TypeScript 7 preview; the compiler is tscA stage runs tsgo

A word after a manager's exec, run or x, or after npx or bunx, runs that tool through the manager. A command that runs a tool through a runner's task, such as mise run lint, isn't read. With no finding it prints no findings, followed on the same line by the groups it checked: the package manager, the linter's settings and the compiler's output. It exits 3 where the profile is missing or doesn't parse, or where nothing is a finding and the package manager is unresolved.

Generated files

Commit the lockfile your package manager writes (package-lock.json, pnpm-lock.yaml, yarn.lock or bun.lock), because it is the resolved dependency tree every collaborator and every CI run installs from. Ignore node_modules/, a build's output directory, coverage/, *.tsbuildinfo and .eslintcache, because the next run regenerates each.

What it reports instead of a table

Every command exits 0 when it reports what it was asked, check exits 1 on a finding, and every command exits 3 when it can't:

LineMeans
unresolved: not a TypeScript and JavaScript repositoryGit tracks no package.json outside node_modules
unresolved: <directory> holds no package.json; one is in <directories>The directory you named has no tracked package.json
unresolved: <file> doesn't parse as JSON: ...A package.json isn't valid JSON; the parser's message follows
unresolved: no profile at <path>check found no profile
unresolved: the profile doesn't parse: ...The profile isn't valid TOML; the parser's message follows

Review code

When Pi reviews TypeScript or JavaScript, the skill has it read the package manager and the configured tools first, and then load reviewing.md, which holds eight points no command reports: the strictness flags left off, any and casts, the exports map and the module format, floating promises, the targeted runtime, the coverage provider, the publishing checks and the absence of an architecture check. The skill never runs a package manager the project doesn't declare, never resolves check to tsgo, never writes an .eslintrc file, never turns on a strictness flag unasked, and never reports provenance as a guarantee about the code.

What it costs you

The skill's description stays in context on every turn, and reviewing.md costs context only when code is reviewed. The program is a native binary shipped inside the unit, and needs git on the machine. It runs no package manager and reaches no network. On a machine the unit carries no binary for, it reports the repository as unresolved and exits 3.

Read a subcommand's help

meow-typescript --help lists the subcommands, and meow-typescript <subcommand> --help names what it determines, what you read to reach the same answer without the tool, and the first word of each kind of line it prints. A test holds each subcommand's output to those words.