mirror of
https://github.com/web-infra-dev/midscene.git
synced 2026-01-07 12:41:08 +00:00
97 lines
2.9 KiB
JSON
97 lines
2.9 KiB
JSON
{
|
|
"name": "@midscene/web",
|
|
"description": "Web integration for Midscene.js",
|
|
"version": "0.3.0",
|
|
"jsnext:source": "./src/index.ts",
|
|
"main": "./dist/lib/index.js",
|
|
"module": "./dist/es/index.js",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"import": "./dist/es/index.js",
|
|
"require": "./dist/lib/index.js"
|
|
},
|
|
"./playwright-report": {
|
|
"types": "./dist/types/playwright-report.d.ts",
|
|
"import": "./dist/es/playwright-report.js",
|
|
"require": "./dist/lib/playwright-report.js"
|
|
},
|
|
"./constants": {
|
|
"types": "./dist/types/constants.d.ts",
|
|
"import": "./dist/es/constants.js",
|
|
"require": "./dist/lib/constants.js"
|
|
},
|
|
"./html-element": {
|
|
"types": "./dist/types/html-element/index.d.ts",
|
|
"import": "./dist/es/html-element/index.js",
|
|
"require": "./dist/lib/html-element/index.js"
|
|
}
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
".": ["./dist/types/index.d.ts"],
|
|
"playwright-report": ["./dist/types/playwright-report.d.ts"],
|
|
"constants": ["./dist/types/constants.d.ts"],
|
|
"html-element": ["./dist/types/html-element/index.d.ts"]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"dev": "modern dev",
|
|
"build": "npm run build:pkg && npm run build:script",
|
|
"build:pkg": "modern build -c ./modern.config.ts",
|
|
"build:script": "modern build -c ./modern.inspect.config.ts",
|
|
"build:watch": "modern build -w -c ./modern.config.ts & modern build -w -c ./modern.inspect.config.ts",
|
|
"test": "vitest --run",
|
|
"test:ai": "AITEST=true npm run test",
|
|
"new": "modern new",
|
|
"upgrade": "modern upgrade",
|
|
"prepublishOnly": "npm run build",
|
|
"e2e": "playwright test --config=playwright.config.ts",
|
|
"e2e:cache": "MIDSCENE_CACHE=true playwright test --config=playwright.config.ts",
|
|
"e2e:ui": "playwright test --config=playwright.config.ts --ui",
|
|
"e2e:ui-cache": "MIDSCENE_CACHE=true playwright test --config=playwright.config.ts --ui"
|
|
},
|
|
"files": ["dist", "README.md"],
|
|
"dependencies": {
|
|
"openai": "4.47.1",
|
|
"sharp": "0.33.3",
|
|
"inquirer": "10.1.5",
|
|
"@midscene/core": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@modern-js/module-tools": "^2.56.1",
|
|
"js-sha256": "0.11.0",
|
|
"@types/node": "^18.0.0",
|
|
"typescript": "~5.0.4",
|
|
"vitest": "^1.6.0",
|
|
"playwright": "1.44.1",
|
|
"puppeteer": "23.0.2",
|
|
"@playwright/test": "1.44.1",
|
|
"fs-extra": "11.2.0",
|
|
"@types/fs-extra": "11.0.4",
|
|
"dotenv": "16.4.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@playwright/test": "^1.44.1",
|
|
"playwright": "^1.44.1",
|
|
"puppeteer": "^23.0.2"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@playwright/test": {
|
|
"optional": true
|
|
},
|
|
"puppeteer": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org"
|
|
},
|
|
"license": "MIT"
|
|
}
|