@pablovitasso/szkrabok 1.0.13 → 1.0.15
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pablovitasso/szkrabok",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Production-grade MCP browser automation layer with persistent sessions and stealth capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"format:check": "prettier --check \"{src,tests}/**/*.{js,json,md}\" \"*.{js,json,md}\"",
|
|
38
38
|
"codegen:mcp": "node packages/runtime/mcp-client/codegen/generate-mcp-tools.mjs",
|
|
39
39
|
"prepack": "git describe --exact-match --tags HEAD 2>/dev/null || (echo 'ERROR: HEAD is not tagged. Run npm run release:patch or release:minor first.' && exit 1)",
|
|
40
|
-
"release:patch": "npm version patch --workspaces --include-workspace-root --ignore-scripts && node scripts/release-reminder.js",
|
|
41
|
-
"release:minor": "npm version minor --workspaces --include-workspace-root --ignore-scripts && node scripts/release-reminder.js",
|
|
40
|
+
"release:patch": "npm version patch --workspaces --include-workspace-root --ignore-scripts && node scripts/release-commit.js && node scripts/release-reminder.js",
|
|
41
|
+
"release:minor": "npm version minor --workspaces --include-workspace-root --ignore-scripts && node scripts/release-commit.js && node scripts/release-reminder.js",
|
|
42
42
|
"release:publish": "node scripts/release-publish.js",
|
|
43
43
|
"test": "npm run test:self && npm run test:auto",
|
|
44
44
|
"test:node": "node --test tests/node/*.test.js",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { execSync } from 'node:child_process';
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { resolve, dirname } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const pkg = JSON.parse(readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), '../package.json'), 'utf8'));
|
|
7
|
+
|
|
8
|
+
execSync(
|
|
9
|
+
`git add package.json package-lock.json packages/runtime/package.json && git commit -m "chore: release ${pkg.version}"`,
|
|
10
|
+
{ stdio: 'inherit' }
|
|
11
|
+
);
|
package/scripts/setup.js
CHANGED
package/src/tools/scaffold.js
CHANGED
|
@@ -8,7 +8,7 @@ const TEMPLATES_DIR = join(dirname(fileURLToPath(import.meta.url)), 'templates')
|
|
|
8
8
|
const npmBin = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
9
9
|
|
|
10
10
|
const { version: PKG_VERSION } = JSON.parse(
|
|
11
|
-
readFileSync(new URL('
|
|
11
|
+
readFileSync(new URL('../../package.json', import.meta.url))
|
|
12
12
|
);
|
|
13
13
|
|
|
14
14
|
const tpl = path => readFile(join(TEMPLATES_DIR, path), 'utf8');
|