TextMachine draft
TypeScript Library taste
A machine draft that has not been reviewed yet
A model produced this text and it passed automated checks only; an editor has not reviewed it yet. It may contain mistakes of meaning or wording, so read it before you rely on it. This page is not indexed by search engines until it is reviewed.
The prompt
# TypeScript library taste
- Use pnpm as the package manager. Confidence: 0.95
- Enable strict mode and noUncheckedIndexedAccess in tsconfig. Confidence: 0.95
- Build with tsup and emit both ESM and CJS with .d.ts files. Confidence: 0.90
- Declare the exports map in package.json instead of relying on main. Confidence: 0.90
- Test with vitest and keep tests next to source as *.test.ts. Confidence: 0.90
- Use Changesets for versioning and changelogs. Confidence: 0.85
- Lint and format with Biome instead of ESLint plus Prettier. Confidence: 0.70
- Keep runtime dependencies at zero where practical. Confidence: 0.85
- Mark the package with "sideEffects": false to enable tree shaking. Confidence: 0.85
- Prefer named exports over default exports. Confidence: 0.90
- Validate untrusted input with zod and infer types from the schemas. Confidence: 0.80
- Run publint and arethetypeswrong in CI before every release. Confidence: 0.80
- Use type-only imports (import type) for types. Confidence: 0.85
- Publish with npm provenance enabled from GitHub Actions. Confidence: 0.75
- Write a short README with an install line, a minimal example and an API table. Confidence: 0.90
- Start versions at 0.1.0 and follow semver strictly once stable. Confidence: 0.70
Open in…
- Open in Claudeclaude.ai (opens in a new window)
- Open in ChatGPTchatgpt.com (opens in a new window)
- Open in Geminigemini.google.com (opens in a new window)
Notice: opening an outside site sends it the text of the prompt as you see it now, including what you filled in. Do not put secret or personal data in it.
Claude and ChatGPT: the text goes in the site's address.
Gemini: we copy the text to your clipboard and open the site; paste the text there.
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).