Ensure @prompt-optimizer/core dist exists so Vitest/Vite can resolve workspace imports in a fresh CI checkout.
108 lines
4.8 KiB
JSON
108 lines
4.8 KiB
JSON
{
|
|
"name": "prompt-optimizer",
|
|
"version": "2.5.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.6.1",
|
|
"engines": {
|
|
"node": "^18.0.0 || ^20.0.0 || ^22.0.0",
|
|
"npm": "请使用pnpm代替npm",
|
|
"yarn": "请使用pnpm代替yarn"
|
|
},
|
|
"scripts": {
|
|
"build": "npm-run-all build:core build:ui build:parallel",
|
|
"build:core": "pnpm -F @prompt-optimizer/core build",
|
|
"build:ui": "pnpm -F @prompt-optimizer/ui build",
|
|
"build:parallel": "npm-run-all --parallel build:web build:ext",
|
|
"build:web": "pnpm -F @prompt-optimizer/web build",
|
|
"build:ext": "pnpm -F @prompt-optimizer/extension build",
|
|
"build:desktop-only": "pnpm -F @prompt-optimizer/desktop build",
|
|
"build:desktop": "npm-run-all build:core build:ui build:web build:desktop-only",
|
|
"dev": "npm-run-all clean:dist build:core build:ui dev:parallel",
|
|
"dev:fresh": "npm-run-all kill:dev clean pnpm-install dev",
|
|
"dev:parallel": "concurrently -k -p \"[{name}]\" -n \"UI,WEB\" \"pnpm -F @prompt-optimizer/ui build --watch\" \"pnpm -F @prompt-optimizer/web dev\"",
|
|
"dev:ext": "pnpm -F @prompt-optimizer/extension dev",
|
|
"dev:desktop": "npm-run-all clean:dist build:core build:ui dev:desktop:parallel",
|
|
"dev:desktop:fresh": "npm-run-all kill:dev clean pnpm-install dev:desktop",
|
|
"dev:desktop:parallel": "concurrently -k -p \"[{name}]\" -n \"WEB,DESKTOP\" \"pnpm -F @prompt-optimizer/web dev\" \"pnpm -F @prompt-optimizer/desktop dev\"",
|
|
"test": "npm-run-all -s test:unit test:e2e:smart",
|
|
"test:unit": "pnpm -r test --run --passWithNoTests",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:smart": "node scripts/smart-e2e.js",
|
|
"test:e2e:record": "cross-env E2E_VCR_MODE=record playwright test",
|
|
"test:e2e:replay": "cross-env E2E_VCR_MODE=replay playwright test",
|
|
"test:gate:core": "pnpm -F @prompt-optimizer/core test:gate",
|
|
"test:gate:ui": "pnpm -F @prompt-optimizer/core build && pnpm -F @prompt-optimizer/ui test",
|
|
"test:gate:e2e": "playwright test tests/e2e/regression.spec.ts tests/e2e/workflows/p0-route-smoke.spec.ts",
|
|
"test:gate": "npm-run-all -s test:gate:core test:gate:ui",
|
|
"test:gate:full": "npm-run-all -s test:gate test:gate:e2e",
|
|
"test:fast": "pnpm -r test --run --passWithNoTests",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:debug": "playwright test --debug",
|
|
"clean": "npm-run-all clean:dist clean:vite",
|
|
"clean:dist": "rimraf packages/core/dist packages/ui/dist packages/web/dist packages/extension/dist packages/desktop/dist packages/desktop/web-dist",
|
|
"clean:vite": "rimraf packages/core/node_modules/.vite packages/ui/node_modules/.vite packages/web/node_modules/.vite packages/extension/node_modules/.vite",
|
|
"pnpm-install": "pnpm install",
|
|
"version:sync": "node scripts/sync-versions.js",
|
|
"version": "pnpm run version:sync && git add -A",
|
|
"version:prepare": "pnpm version --no-git-tag-version",
|
|
"version:tag": "git tag v$(node -p \"require('./package.json').version\")",
|
|
"version:publish": "git push origin v$(node -p \"require('./package.json').version\")",
|
|
"mcp:build": "pnpm --filter @prompt-optimizer/mcp-server build",
|
|
"mcp:dev": "pnpm --filter @prompt-optimizer/mcp-server dev",
|
|
"mcp:start": "pnpm --filter @prompt-optimizer/mcp-server start",
|
|
"mcp:test": "pnpm --filter @prompt-optimizer/mcp-server test",
|
|
"lint": "pnpm -F @prompt-optimizer/ui lint",
|
|
"lint:fix": "pnpm -F @prompt-optimizer/ui lint:fix",
|
|
"bmad:refresh": "bmad-method install -f -i codex",
|
|
"bmad:list": "bmad-method list:agents",
|
|
"bmad:validate": "bmad-method validate",
|
|
"kill:dev": "node scripts/kill-dev.js"
|
|
},
|
|
"devDependencies": {
|
|
"@intlify/unplugin-vue-i18n": "^11.0.1",
|
|
"@playwright/test": "^1.56.1",
|
|
"concurrently": "^8.2.2",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^39.2.6",
|
|
"i18next": "^24.2.2",
|
|
"i18next-browser-languagedetector": "^8.0.4",
|
|
"lodash-unified": "^1.0.3",
|
|
"npm-run-all": "^4.1.5",
|
|
"rimraf": "^4.4.1",
|
|
"typescript": "^5.8.2"
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/icons-vue": "^2.3.1",
|
|
"@floating-ui/core": "^1.6.9",
|
|
"@floating-ui/dom": "^1.6.13",
|
|
"@floating-ui/utils": "^0.2.9",
|
|
"@popperjs/core": "^2.11.8",
|
|
"@vue/reactivity": "^3.5.13",
|
|
"@vue/runtime-core": "^3.5.13",
|
|
"@vue/runtime-dom": "^3.5.13",
|
|
"@vue/shared": "^3.5.13",
|
|
"@vueuse/core": "^12.7.0",
|
|
"@vueuse/shared": "^12.7.0",
|
|
"async-validator": "^4.2.5",
|
|
"date-fns": "^3.6.0",
|
|
"date-fns-tz": "^3.1.3",
|
|
"dayjs": "^1.11.13",
|
|
"electron-to-chromium": "^1.5.177",
|
|
"lodash-es": "^4.17.21",
|
|
"memoize-one": "^6.0.0",
|
|
"normalize-wheel-es": "^1.2.0",
|
|
"vue-i18n": "^11.2.2"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "AGPL-3.0-only",
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"electron"
|
|
],
|
|
"overrides": {
|
|
"builder-util-runtime": "9.2.10"
|
|
}
|
|
}
|
|
}
|