fastbrowser_cli 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -184,6 +184,13 @@ npm run inspect:fastbrowser_mcp # open the MCP inspector against fastbrowser_mcp
|
|
|
184
184
|
|
|
185
185
|
`fastbrowser_cli` depends on the in-repo workspace package `a11y_parse`. Always publish through **pnpm** (not npm) — `pnpm publish` rewrites the `workspace:^` dep into a real version range in the tarball; `npm publish` cannot.
|
|
186
186
|
|
|
187
|
+
`pnpm run publish:all` runs the full flow in one command:
|
|
188
|
+
|
|
189
|
+
1. `prepublish:check` — fails fast if the working tree is dirty
|
|
190
|
+
2. `build` — `tsc -p tsconfig.build.json`
|
|
191
|
+
3. `version:bump` — `npm version patch --no-git-tag-version`, then commits the new `package.json` with message `feat: bump version to X.Y.Z in fastbrowser_cli package.json`
|
|
192
|
+
4. `pnpm publish --access public`
|
|
193
|
+
|
|
187
194
|
Order matters when both packages have changed: publish `a11y_parse` first so the version baked into `fastbrowser_cli`'s tarball already exists on the registry.
|
|
188
195
|
|
|
189
196
|
```bash
|
|
@@ -195,8 +202,8 @@ pnpm run publish:all
|
|
|
195
202
|
cd ../fastbrowser_cli
|
|
196
203
|
pnpm run publish:all
|
|
197
204
|
|
|
198
|
-
# 3. Push the version-bump commits
|
|
199
|
-
git push
|
|
205
|
+
# 3. Push the version-bump commits
|
|
206
|
+
git push
|
|
200
207
|
```
|
|
201
208
|
|
|
202
209
|
Full workflow, gotchas, and the version-rewriting cheatsheet live in [docs/publishing_workflow.md](docs/publishing_workflow.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastbrowser_cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "A CLI tool for FastBrowser, providing commands to interact with the FastBrowser MCP (Model Context Protocol) server and perform various browser automation tasks.",
|
|
5
5
|
"main": "dist/fastbrowser_cli/fastbrowser_cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
"inspect:playwright:cdp_endpoint": "npx @modelcontextprotocol/inspector npx @playwright/mcp@latest --cdp-endpoint=http://localhost:9222",
|
|
43
43
|
"inspect:playwright:extension": "npx @modelcontextprotocol/inspector npx @playwright/mcp@latest --extension",
|
|
44
44
|
"build": "tsc -p tsconfig.build.json",
|
|
45
|
-
"
|
|
45
|
+
"prepublish:check": "test -z \"$(git status --porcelain)\" || (echo 'Working tree dirty — commit or stash first' && exit 1)",
|
|
46
|
+
"version:bump": "npm version patch --no-git-tag-version && git add package.json && git commit -m \"feat: bump version to $(node -p 'require(\\\"./package.json\\\").version') in fastbrowser_cli package.json\"",
|
|
47
|
+
"publish:all": "pnpm run prepublish:check && pnpm run build && pnpm run version:bump && pnpm publish --access public",
|
|
46
48
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
47
49
|
"test": "npx tsx --test 'tests/**/*.test.ts'"
|
|
48
50
|
}
|