Files
threadkit/package.json
T
GandClaude Opus 5 4856fb0631 ci: add the missing lint gate, and put typecheck in verify (#4)
Third instance of one scaffold defect. ai-forms (#11) and ai-ration (#2) had
exactly this, and so does threadkit:

  - No lint at all. ESLint was not a dependency, there was no config, and no
    script referenced it — so the fleet verify floor (lint AND typecheck AND
    test) was unmet.
  - `typecheck` existed but was not in `verify`. `build` is `tsc -p`, so types
    were checked only as a side effect of emitting. That conflates "compiles
    to dist" with "types are sound", and it evaporates the moment the build
    strategy changes.

verify = lint → typecheck → build → test.

Three repos with the same gap is a template problem, not three coincidences.
The instance is fixed here; the generator that produces `"verify": "npm run
build && npm test"` needs the same edit, or repo four is born with it. Naming
that explicitly rather than quietly fixing instance three — an un-encoded
"I'll remember" is the thing the never-twice rule exists to prevent.

Recommended presets only. ~500 lines of library code does not need a bespoke
rule set. Lint is clean on arrival, so this closes a hole rather than deferring
a backlog.

CI needs no change — ci.yml already calls `npm run verify` verbatim.

Verified: `npm run verify` passes — eslint clean, tsc clean, build clean,
31/31 tests.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 16:44:34 +02:00

59 lines
1.4 KiB
JSON

{
"name": "threadkit",
"version": "0.1.0",
"description": "Headless multi-participant message threads. Permission is participation, unread is per-person, and an AI can be a participant subject to the same visibility rules as everyone else.",
"license": "MIT",
"author": "Mao Nakamoto",
"homepage": "https://github.com/maonakamoto/threadkit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/maonakamoto/threadkit.git"
},
"bugs": {
"url": "https://github.com/maonakamoto/threadkit/issues"
},
"keywords": [
"messaging",
"chat",
"threads",
"group-chat",
"ai",
"authorization",
"headless"
],
"type": "module",
"sideEffects": false,
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"files": [
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "node --test test/*.test.js",
"verify": "npm run lint && npm run typecheck && npm run build && npm test",
"prepare": "npm run build"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@types/node": "^22.10.2",
"eslint": "^9.39.5",
"globals": "^15.15.0",
"typescript": "^5.8.2",
"typescript-eslint": "^8.67.0"
}
}