release command

This commit is contained in:
Tommy D. Rossi
2025-11-24 15:38:02 +01:00
parent e85a2a9b97
commit fb5182d0a5
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -3,6 +3,7 @@ this codebase has the codebase for playwriter
the extension uses chrome.debugger to manage the user browser
read ./README.md for an overview of how this extension and mcp work
read playwriter/src/prompt.md to understand how the MCP works
## architecture
@@ -48,12 +49,14 @@ you can run singular tests with `-t "testname"`
each test() block should reset the extension connection to make sure tests are independent.
NEVER call browser.close() in the tests
NEVER call browser.close() in tests or any other code that interacts with our CDP endpoint
remember that every time the extension is activated in a tab that tab gets added to the available pages. so if you toggle the extension and then do .newPage() there will be 2 pages, not 1.
to debug server or extension issues you can also inspect the file playwriter/relay-server.log to see both extension and server logs. with all cdp events sent. to see if there are events missing or something broken. this file is recreated every time the server is started and appended in real time. use rg to only read relevant lines and parts because it can get quite long
tests will take about 30 seconds, so set a timeout of at least 60 seconds when running the test bash command
# core guidelines
when summarizing changes at the end of the message, be super short, a few words and in bullet points, use bold text to highlight important keywords. use markdown.
@@ -75,6 +78,12 @@ always use kebab case for new filenames. never use uppercase letters in filename
use `git ls-files | tree --fromfile` to see files in the repo. this command will ignore files ignored by git
## handling unexpected file contents after a read or write
if you find code that was not there since the last time you read the file it means the user or another agent edited the file. do not revert the changes that were added. instead keep them and integrate them with your new changes
IMPORTANT: NEVER commit your changes unless clearly and specifically asked to!
# typescript
- ALWAYS use normal imports instead of dynamic imports, unless there is an issue with es module only packages and you are in a commonjs package (this is rare).
+1 -1
View File
@@ -6,7 +6,7 @@
"watch": "pnpm -r watch",
"build": "pnpm -r build",
"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 build && rm -f extension.zip && cd extension && zip -r ../extension.zip dist"
"release": "pnpm 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'"
},
"devDependencies": {
"@changesets/cli": "^2.29.7",