Files
medusa-store/docs-util/packages/docblock-generator/package.json
Shahed Nasser 21156f945d docs-util: added AI generator (#6770)
## What

Adds an AI generator to the docblock tool that uses OpenAI.

The generator at the moment only generates examples for functions when the `--generate-examples` option is provided.

## Note

I've included the generated examples of the `IOrderModuleService` as a reference of the type of result provided by the AI generator, with minor tweeks I've made. I haven't made any changes to descriptions in that file.
2024-03-28 11:32:30 +00:00

40 lines
900 B
JSON

{
"name": "docblock-generator",
"license": "MIT",
"scripts": {
"dev": "ts-node src/index.ts",
"start": "node dist/index.js",
"build": "tsc",
"watch": "tsc --watch",
"prepublishOnly": "cross-env NODE_ENV=production tsc --build"
},
"publishConfig": {
"access": "public"
},
"version": "0.0.0",
"type": "module",
"exports": "./dist/index.js",
"bin": {
"workflow-diagrams-generator": "dist/index.js"
},
"dependencies": {
"@faker-js/faker": "^8.4.0",
"@octokit/core": "^5.0.2",
"commander": "^11.1.0",
"dotenv": "^16.3.1",
"eslint": "^8.56.0",
"minimatch": "^9.0.3",
"openai": "^4.29.1",
"openapi-types": "^12.1.3",
"pluralize": "^8.0.0",
"prettier": "^3.2.4",
"ts-node": "^10.9.1",
"typescript": "5.2",
"utils": "*",
"yaml": "^2.3.4"
},
"devDependencies": {
"@types/node": "^20.9.4"
}
}