This commit is contained in:
Tommy D. Rossi
2026-01-17 00:34:41 +01:00
parent 141ace59d7
commit 6af2373fe6
3 changed files with 27 additions and 1 deletions
+3
View File
@@ -13,3 +13,6 @@ playwriter/src/assets/*.png
playwriter/src/assets/framer.html
*-snapshot.txt
claude-extension
# opensrc - source code for packages
opensrc/
+23
View File
@@ -497,3 +497,26 @@ const jsonSchema = toJSONSchema(mySchema, {
```
github.md
<!-- opensrc:start -->
## Source Code Reference
Source code for dependencies is available in `opensrc/` for deeper understanding of implementation details.
See `opensrc/sources.json` for the list of available packages and their versions.
Use this source code when you need to understand how a package works internally, not just its types/interface.
### Fetching Additional Source Code
To fetch source code for a package or repository you need to understand, run:
```bash
npx opensrc <package> # npm package (e.g., npx opensrc zod)
npx opensrc pypi:<package> # Python package (e.g., npx opensrc pypi:requests)
npx opensrc crates:<package> # Rust crate (e.g., npx opensrc crates:serde)
npx opensrc <owner>/<repo> # GitHub repo (e.g., npx opensrc vercel/ai)
```
<!-- opensrc:end -->
+1 -1
View File
@@ -5,7 +5,7 @@
"test": "pnpm --filter playwriter test",
"watch": "pnpm -r watch",
"reload": "pnpm --filter mcp-extension reload",
"reload": "pnpm --filter playwriter build && pnpm --filter mcp-extension reload",
"agents.md": "agentsdotmd ./PLAYWRITER_AGENTS.md core.md typescript.md pnpm.md vitest.md changelog.md docs-writing.md github.md playwright.md zod.md gitchamber.md",
"release": "pnpm --filter playwriter build && rm -f extension.zip && cd extension && zip -r ../extension.zip dist && cd .. && realpath extension.zip | pbcopy && open 'https://chrome.google.com/webstore/devconsole/a379d569-9533-44e4-9749-0368f6dbf878/jfeammnjpkecdekppnclgkkffahnhfhe/edit/package'"
},