원클릭으로
ts-memory-baseline
// Measure and compare TypeScript memory usage for @regle/core and test typechecks. Use when checking TS server pressure, type-level perf regressions, or before/after heavy generic typing changes.
// Measure and compare TypeScript memory usage for @regle/core and test typechecks. Use when checking TS server pressure, type-level perf regressions, or before/after heavy generic typing changes.
Vite+ unified toolchain (vp CLI) usage for this project, wrapping Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Use when running install/build/test/check/format/lint, working with the `vp` CLI, or validating changes in this repo.
Core skills for using Regle form validation in Vue.js. Provides setup, validation rules, and usage patterns.
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.
VitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.
Advanced patterns for Regle form validation, including arrays, async, server errors, global config, variants, scoped validation, and schema integration.
TypeScript support for type-safe Regle form validation, rules, and component props.
| name | ts-memory-baseline |
| description | Measure and compare TypeScript memory usage for @regle/core and test typechecks. Use when checking TS server pressure, type-level perf regressions, or before/after heavy generic typing changes. |
| metadata | {"author":"regle","version":"2026.03.19"} |
This skill defines a reproducible process to measure TypeScript memory usage in this repository.
pnpm build before any test-related measurement.pnpm run test:typecheck should never fail. If it fails, treat the run as invalid for regression tracking.PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH"
node -v
pnpm -v
Expected:
v24.x11.1.2 (or project-compatible version)tests/TS_MEMORY_BASELINE_RESULTS.md.PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" \
./node_modules/.bin/tsc -p "packages/core/tsconfig.json" --noEmit --extendedDiagnostics
Capture:
Memory usedInstantiationsCheck timeRun build first:
PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" pnpm build
Then:
PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" \
/usr/bin/time -l pnpm run test:typecheck
Capture:
0)maximum resident set sizepeak memory footprintreal/user/sysRecommended sequence:
# warm-up (discard)
PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck
# measured runs (collect all 3)
PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck
PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck
PATH="/Users/victorgarcia/.nvm/versions/node/v24.14.0/bin:$PATH" \
/usr/bin/time -l corepack pnpm run test:typecheck
Use median deltas because absolute values can vary with machine/CPU load.
(new - old) / old * 100.±5% for memory metrics.>5% and <=10% increase.>10% increase.Check time and real time, treat as noisy:
>15% and reproducible across runs.pnpm run test:typecheck exit code is non-zero, invalidate the run (do not update baseline).Store only numeric outcomes in:
tests/TS_MEMORY_BASELINE_RESULTS.mdDo not put procedural instructions in the results file.