Leyang 1f3fc5b580
chore: not run android tests in ci && update tests for android settig case (#502)
* chore: not run android tests in ci && update tests for android setting case

* ci: add lint for json
2025-03-26 11:39:39 +08:00

162 lines
5.5 KiB
JSON

{
"name": "@midscene/web",
"description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
"version": "0.13.1",
"repository": "https://github.com/web-infra-dev/midscene",
"homepage": "https://midscenejs.com/",
"jsnext:source": "./src/index.ts",
"main": "./dist/lib/index.js",
"types": "./dist/types/index.d.ts",
"bin": {
"midscene-playground": "./bin/midscene-playground"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"default": "./dist/lib/index.js"
},
"./bridge-mode": {
"types": "./dist/types/bridge-mode.d.ts",
"default": "./dist/lib/bridge-mode.js"
},
"./bridge-mode-browser": {
"types": "./dist/types/bridge-mode-browser.d.ts",
"default": "./dist/lib/bridge-mode-browser.js"
},
"./utils": {
"types": "./dist/types/utils.d.ts",
"default": "./dist/lib/utils.js"
},
"./ui-utils": {
"types": "./dist/types/ui-utils.d.ts",
"default": "./dist/lib/ui-utils.js"
},
"./puppeteer": {
"types": "./dist/types/puppeteer.d.ts",
"default": "./dist/lib/puppeteer.js"
},
"./playwright": {
"types": "./dist/types/playwright.d.ts",
"default": "./dist/lib/playwright.js"
},
"./playwright-report": {
"types": "./dist/types/playwright-report.d.ts",
"default": "./dist/lib/playwright-report.js"
},
"./playground": {
"types": "./dist/types/playground.d.ts",
"default": "./dist/lib/playground.js"
},
"./midscene-playground": {
"types": "./dist/types/midscene-playground.d.ts",
"default": "./dist/lib/midscene-playground.js"
},
"./android": {
"types": "./dist/types/android.d.ts",
"default": "./dist/lib/android.js"
},
"./chrome-extension": {
"types": "./dist/types/chrome-extension.d.ts",
"default": "./dist/lib/chrome-extension.js"
},
"./yaml": {
"types": "./dist/types/yaml.d.ts",
"default": "./dist/lib/yaml.js"
}
},
"typesVersions": {
"*": {
".": ["./dist/types/index.d.ts"],
"bridge-mode": ["./dist/types/bridge-mode.d.ts"],
"bridge-mode-browser": ["./dist/types/bridge-mode-browser.d.ts"],
"utils": ["./dist/types/utils.d.ts"],
"ui-utils": ["./dist/types/ui-utils.d.ts"],
"puppeteer": ["./dist/types/puppeteer.d.ts"],
"playwright": ["./dist/types/playwright.d.ts"],
"playwright-report": ["./dist/types/playwright-report.d.ts"],
"playground": ["./dist/types/playground.d.ts"],
"midscene-playground": ["./dist/types/midscene-playground.d.ts"],
"android": ["./dist/types/android.d.ts"],
"chrome-extension": ["./dist/types/chrome-extension.d.ts"],
"yaml": ["./dist/types/yaml.d.ts"]
}
},
"scripts": {
"dev": "modern dev",
"dev:server": "npm run build && ./bin/midscene-playground",
"build": "modern build -c ./modern.config.ts",
"postbuild": "node scripts/check-exports.js",
"build:watch": "modern build -w -c ./modern.config.ts",
"test": "vitest --run",
"test:u": "vitest --run -u",
"test:ai": "AI_TEST_TYPE=web npm run test",
"test:ai:temp": "MIDSCENE_CACHE=true AI_TEST_TYPE=web BRIDGE_MODE=true vitest --run tests/ai/bridge/open-new-tab.test.ts",
"test:ai:bridge": "MIDSCENE_CACHE=true BRIDGE_MODE=true AI_TEST_TYPE=web npm run test --inspect tests/ai/bridge/temp.test.ts",
"test:ai:cache": "MIDSCENE_CACHE=true AI_TEST_TYPE=web npm run test",
"test:ai:all": "npm run test:ai:web && npm run test:ai:native",
"test:ai:native": "MIDSCENE_CACHE=true AI_TEST_TYPE=native npm run test",
"upgrade": "modern upgrade",
"prepublishOnly": "npm run build",
"e2e": "playwright test --config=tests/playwright.config.ts",
"e2e:report": "MIDSCENE_REPORT=true playwright test --config=tests/playwright.config.ts",
"e2e:cache": "MIDSCENE_CACHE=true playwright test --config=tests/playwright.config.ts",
"e2e:ui": "playwright test --config=tests/playwright.config.ts --ui",
"e2e:ui:cache": "MIDSCENE_CACHE=true playwright test --config=tests/playwright.config.ts --ui"
},
"files": ["static", "dist", "iife-script", "README.md", "bin"],
"dependencies": {
"@midscene/core": "workspace:*",
"@midscene/shared": "workspace:*",
"@xmldom/xmldom": "0.8.10",
"appium-adb": "12.12.1",
"cors": "2.8.5",
"dayjs": "1.11.11",
"devtools-protocol": "0.0.1380148",
"dotenv": "16.4.5",
"express": "4.21.1",
"fs-extra": "11.2.0",
"http-server": "14.1.1",
"inquirer": "10.1.5",
"js-sha256": "0.11.0",
"js-yaml": "4.1.0",
"openai": "4.81.0",
"socket.io": "4.8.1",
"socket.io-client": "4.8.1"
},
"devDependencies": {
"@modern-js/module-tools": "2.60.6",
"@playwright/test": "^1.44.1",
"@types/chrome": "0.0.279",
"@types/cors": "2.8.12",
"@types/express": "4.17.14",
"@types/fs-extra": "11.0.4",
"@types/js-yaml": "4.0.9",
"@types/node": "^18.0.0",
"playwright": "1.44.1",
"puppeteer": "24.2.0",
"typescript": "^5.8.2",
"vitest": "3.0.5"
},
"peerDependencies": {
"@playwright/test": "^1.44.1",
"playwright": "^1.44.1",
"puppeteer": ">=20.0.0"
},
"peerDependenciesMeta": {
"@playwright/test": {
"optional": true
},
"puppeteer": {
"optional": true
}
},
"engines": {
"node": ">=18.0.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"license": "MIT"
}