@power-plant/hey-api 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":""}
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import{createClient as e}from"@hey-api/openapi-ts";import{defineGenerator as t,useContext as n}from"@power-plant/core";import r from"@power-plant/openapi-schema";import{toArray as i}from"@stryke/convert/to-array";var a=t({meta:{name:`hey-api`,title:`Hey API`,description:`A generator that uses the OpenAPI specification to generate source code using Hey API.`,version:`1.0`,tags:[`openapi`],links:[{href:`https://heyapi.dev`,description:`Hey API Documentation`},{href:`https://github.com/heyapi/heyapi`,description:`Hey API GitHub Repository`}]},schema:r,generator:async(t,r)=>{let{cwd:a}=n();return(await e(i(r).map(e=>({...e,output:e.output??{path:a},input:t})))).reduce((e,t)=>(t.gen.render().forEach(t=>{e[t.path]={path:t.path,source:[{content:t.content}]}}),e),{})}});export{a as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@power-plant/hey-api",
3
+ "version": "0.0.2",
4
+ "private": false,
5
+ "description": "A Power Plant generator for using Hey API to generate code from an OpenAPI schema.",
6
+ "keywords": [
7
+ "hey-api",
8
+ "power-plant-generator",
9
+ "power-plant",
10
+ "storm-software"
11
+ ],
12
+ "homepage": "https://stormsoftware.com",
13
+ "bugs": {
14
+ "url": "https://stormsoftware.com/support",
15
+ "email": "support@stormsoftware.com"
16
+ },
17
+ "repository": {
18
+ "type": "github",
19
+ "url": "https://github.com/storm-software/power-plant.git",
20
+ "directory": "packages/generators/hey-api"
21
+ },
22
+ "funding": {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/storm-software"
25
+ },
26
+ "license": "Apache-2.0",
27
+ "author": {
28
+ "name": "Storm Software",
29
+ "email": "contact@stormsoftware.com",
30
+ "url": "https://stormsoftware.com"
31
+ },
32
+ "maintainers": [
33
+ {
34
+ "name": "Storm Software",
35
+ "email": "contact@stormsoftware.com",
36
+ "url": "https://stormsoftware.com"
37
+ }
38
+ ],
39
+ "contributors": [
40
+ {
41
+ "name": "Storm Software",
42
+ "email": "contact@stormsoftware.com",
43
+ "url": "https://stormsoftware.com"
44
+ }
45
+ ],
46
+ "type": "module",
47
+ "exports": {
48
+ ".": {
49
+ "require": {
50
+ "types": "./dist/index.d.cts",
51
+ "default": "./dist/index.cjs"
52
+ },
53
+ "import": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ },
57
+ "default": {
58
+ "types": "./dist/index.d.mts",
59
+ "default": "./dist/index.mjs"
60
+ }
61
+ },
62
+ "./package.json": "./package.json"
63
+ },
64
+ "main": "./dist/index.cjs",
65
+ "module": "./dist/index.mjs",
66
+ "types": "./dist/index.d.cts",
67
+ "typings": "dist/index.d.mts",
68
+ "files": ["dist"],
69
+ "dependencies": {
70
+ "@hey-api/openapi-ts": "^0.99.0",
71
+ "@power-plant/core": "^0.0.6",
72
+ "@power-plant/openapi-schema": "^0.0.1",
73
+ "@power-plant/schema": "^0.0.6",
74
+ "@stryke/convert": "^0.7.26",
75
+ "@stryke/type-checks": "^0.6.28",
76
+ "@stryke/types": "^0.12.23"
77
+ },
78
+ "devDependencies": {
79
+ "@powerlines/plugin-tsdown": "^0.1.543",
80
+ "@types/node": "^25.9.4",
81
+ "powerlines": "^0.47.142"
82
+ },
83
+ "publishConfig": { "access": "public" },
84
+ "gitHead": "1cd5a7e9984824bad1310f46128dab190fc77fa7"
85
+ }