Skip to content

Commit eb7406c

Browse files
baozhoutaoclaude
andauthored
docs(protocol): plugin-spec package.json example prints the scaffolder's TypeScript floor (#17376)
The `package.json` distribution-format example in `content/docs/protocol/kernel/plugin-spec.mdx` declared a `typescript` floor of `^5.0.0`, which admits 5.0-5.2 — versions two other doc pages already state are not supported. Updated it to the value the scaffolders currently emit (`^5.3.0`, `SCAFFOLD_TYPESCRIPT_RANGE` in `packages/cli/src/commands/init.ts`) and added an adjacent sentence naming that constant as the authority, so the snippet stops being a second value someone has to remember to keep in sync. Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU Co-authored-by: Claude <noreply@anthropic.com>
1 parent d9b97af commit eb7406c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

content/docs/protocol/kernel/plugin-spec.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ Plugins are distributed as **NPM packages** for easy versioning and distribution
705705

706706
"devDependencies": {
707707
"@objectstack/cli": "^2.0.0",
708-
"typescript": "^5.0.0"
708+
"typescript": "^5.3.0"
709709
},
710710

711711
"keywords": [
@@ -721,6 +721,10 @@ Plugins are distributed as **NPM packages** for easy versioning and distribution
721721
}
722722
```
723723

724+
The `typescript` floor above mirrors `SCAFFOLD_TYPESCRIPT_RANGE` in
725+
`packages/cli/src/commands/init.ts` — that constant, not this snippet, is the
726+
authority the scaffolders emit from.
727+
724728
### Publishing to NPM
725729

726730
```bash

0 commit comments

Comments
 (0)