- 在 .npmrc 中启用预/后置脚本和公共依赖提升 - 扩展 package.json 的包管理器支持,增加 pnpm 版本约束 - 调整 core 和 ui 包的导出配置,优化模块引入方式 - 更新 Node.js 版本支持范围,兼容 18、20 和 22 版本
38 lines
963 B
JSON
38 lines
963 B
JSON
{
|
|
"name": "@prompt-optimizer/core",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:unit": "vitest run tests/unit",
|
|
"test:integration": "vitest run tests/integration"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.0",
|
|
"dotenv": "^16.4.7",
|
|
"tsup": "^8.0.2",
|
|
"typescript": "^5.3.3",
|
|
"vitest": "^3.0.2"
|
|
},
|
|
"dependencies": {
|
|
"@google/generative-ai": "^0.21.0",
|
|
"openai": "^4.83.0",
|
|
"uuid": "^11.0.5",
|
|
"zod": "^3.22.4"
|
|
}
|
|
} |