@powerlines/plugin-openapi 0.2.3 → 0.2.5
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.
- package/dist/index-CI7nhO_m.d.cts +1335 -0
- package/dist/index-CI7nhO_m.d.ts +1335 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +35 -0
- package/dist/src/index.d.ts +35 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +24 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +24 -0
- package/dist/types/plugin.d.ts +24 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +7 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var joinPaths=require('@stryke/path/join-paths'),a=require('defu'),s=require('openapi-typescript'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);var s__default=/*#__PURE__*/_interopDefault(s);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var p=Object.defineProperty;var t=(o,i)=>p(o,"name",{value:i,configurable:true});const r=t((o={})=>({name:"openapi",config(){return {openapi:a__default.default(o,{schema:joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot,"schema.yaml"),cwd:joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel===null})}},async prepare(){const i=await s__default.default(this.config.openapi.schema,this.config.openapi);this.config.openapi.outputPath?await this.fs.writeFile(this.config.openapi.outputPath,s.astToString(i,{fileName:this.config.openapi.outputPath})):await this.writeBuiltin(s.astToString(i),"openapi");}}),"plugin");var O=r;exports.default=O;exports.plugin=r;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from '../index-CI7nhO_m.cjs';
|
|
2
|
+
export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
|
|
3
|
+
import 'node:buffer';
|
|
4
|
+
import 'node:stream';
|
|
5
|
+
import 'openapi-typescript';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'vite';
|
|
13
|
+
import '@stryke/env/get-env-paths';
|
|
14
|
+
import '@stryke/types/package-json';
|
|
15
|
+
import 'jiti';
|
|
16
|
+
import 'oxc-parser';
|
|
17
|
+
import 'semver';
|
|
18
|
+
import 'unplugin';
|
|
19
|
+
import '@stryke/types/tsconfig';
|
|
20
|
+
import 'typescript';
|
|
21
|
+
import '@stryke/json/types';
|
|
22
|
+
import 'memfs';
|
|
23
|
+
import 'node:fs';
|
|
24
|
+
import 'unionfs';
|
|
25
|
+
import '@stryke/types/array';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A Powerlines plugin to integrate OpenAPI for code generation.
|
|
29
|
+
*
|
|
30
|
+
* @param options - The plugin options.
|
|
31
|
+
* @returns A Powerlines plugin instance.
|
|
32
|
+
*/
|
|
33
|
+
declare const plugin: <TContext extends OpenAPIPluginContext = OpenAPIPluginContext>(options?: OpenAPIPluginOptions) => Plugin<TContext>;
|
|
34
|
+
|
|
35
|
+
export { OpenAPIPluginContext, OpenAPIPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from '../index-CI7nhO_m.js';
|
|
2
|
+
export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
|
|
3
|
+
import 'node:buffer';
|
|
4
|
+
import 'node:stream';
|
|
5
|
+
import 'openapi-typescript';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'vite';
|
|
13
|
+
import '@stryke/env/get-env-paths';
|
|
14
|
+
import '@stryke/types/package-json';
|
|
15
|
+
import 'jiti';
|
|
16
|
+
import 'oxc-parser';
|
|
17
|
+
import 'semver';
|
|
18
|
+
import 'unplugin';
|
|
19
|
+
import '@stryke/types/tsconfig';
|
|
20
|
+
import 'typescript';
|
|
21
|
+
import '@stryke/json/types';
|
|
22
|
+
import 'memfs';
|
|
23
|
+
import 'node:fs';
|
|
24
|
+
import 'unionfs';
|
|
25
|
+
import '@stryke/types/array';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A Powerlines plugin to integrate OpenAPI for code generation.
|
|
29
|
+
*
|
|
30
|
+
* @param options - The plugin options.
|
|
31
|
+
* @returns A Powerlines plugin instance.
|
|
32
|
+
*/
|
|
33
|
+
declare const plugin: <TContext extends OpenAPIPluginContext = OpenAPIPluginContext>(options?: OpenAPIPluginOptions) => Plugin<TContext>;
|
|
34
|
+
|
|
35
|
+
export { OpenAPIPluginContext, OpenAPIPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {joinPaths}from'@stryke/path/join-paths';import a from'defu';import s,{astToString}from'openapi-typescript';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var p=Object.defineProperty;var t=(o,i)=>p(o,"name",{value:i,configurable:true});const r=t((o={})=>({name:"openapi",config(){return {openapi:a(o,{schema:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot,"schema.yaml"),cwd:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel===null})}},async prepare(){const i=await s(this.config.openapi.schema,this.config.openapi);this.config.openapi.outputPath?await this.fs.writeFile(this.config.openapi.outputPath,astToString(i,{fileName:this.config.openapi.outputPath})):await this.writeBuiltin(astToString(i),"openapi");}}),"plugin");var A=r;export{A as default,r as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
|
|
2
|
+
import 'node:buffer';
|
|
3
|
+
import 'node:stream';
|
|
4
|
+
import 'openapi-typescript';
|
|
5
|
+
import '@storm-software/build-tools/types';
|
|
6
|
+
import '@storm-software/config-tools/types';
|
|
7
|
+
import '@storm-software/config/types';
|
|
8
|
+
import '@stryke/types/base';
|
|
9
|
+
import '@stryke/types/configuration';
|
|
10
|
+
import '@stryke/types/file';
|
|
11
|
+
import 'vite';
|
|
12
|
+
import '@stryke/env/get-env-paths';
|
|
13
|
+
import '@stryke/types/package-json';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'oxc-parser';
|
|
16
|
+
import 'semver';
|
|
17
|
+
import 'unplugin';
|
|
18
|
+
import '@stryke/types/tsconfig';
|
|
19
|
+
import 'typescript';
|
|
20
|
+
import '@stryke/json/types';
|
|
21
|
+
import 'memfs';
|
|
22
|
+
import 'node:fs';
|
|
23
|
+
import 'unionfs';
|
|
24
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
|
|
2
|
+
import 'node:buffer';
|
|
3
|
+
import 'node:stream';
|
|
4
|
+
import 'openapi-typescript';
|
|
5
|
+
import '@storm-software/build-tools/types';
|
|
6
|
+
import '@storm-software/config-tools/types';
|
|
7
|
+
import '@storm-software/config/types';
|
|
8
|
+
import '@stryke/types/base';
|
|
9
|
+
import '@stryke/types/configuration';
|
|
10
|
+
import '@stryke/types/file';
|
|
11
|
+
import 'vite';
|
|
12
|
+
import '@stryke/env/get-env-paths';
|
|
13
|
+
import '@stryke/types/package-json';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'oxc-parser';
|
|
16
|
+
import 'semver';
|
|
17
|
+
import 'unplugin';
|
|
18
|
+
import '@stryke/types/tsconfig';
|
|
19
|
+
import 'typescript';
|
|
20
|
+
import '@stryke/json/types';
|
|
21
|
+
import 'memfs';
|
|
22
|
+
import 'node:fs';
|
|
23
|
+
import 'unionfs';
|
|
24
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import 'node:buffer';
|
|
2
|
+
import 'node:stream';
|
|
3
|
+
import 'openapi-typescript';
|
|
4
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
|
|
5
|
+
import '@storm-software/build-tools/types';
|
|
6
|
+
import '@storm-software/config-tools/types';
|
|
7
|
+
import '@storm-software/config/types';
|
|
8
|
+
import '@stryke/types/base';
|
|
9
|
+
import '@stryke/types/configuration';
|
|
10
|
+
import '@stryke/types/file';
|
|
11
|
+
import 'vite';
|
|
12
|
+
import '@stryke/env/get-env-paths';
|
|
13
|
+
import '@stryke/types/package-json';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'oxc-parser';
|
|
16
|
+
import 'semver';
|
|
17
|
+
import 'unplugin';
|
|
18
|
+
import '@stryke/types/tsconfig';
|
|
19
|
+
import 'typescript';
|
|
20
|
+
import '@stryke/json/types';
|
|
21
|
+
import 'memfs';
|
|
22
|
+
import 'node:fs';
|
|
23
|
+
import 'unionfs';
|
|
24
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import 'node:buffer';
|
|
2
|
+
import 'node:stream';
|
|
3
|
+
import 'openapi-typescript';
|
|
4
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
|
|
5
|
+
import '@storm-software/build-tools/types';
|
|
6
|
+
import '@storm-software/config-tools/types';
|
|
7
|
+
import '@storm-software/config/types';
|
|
8
|
+
import '@stryke/types/base';
|
|
9
|
+
import '@stryke/types/configuration';
|
|
10
|
+
import '@stryke/types/file';
|
|
11
|
+
import 'vite';
|
|
12
|
+
import '@stryke/env/get-env-paths';
|
|
13
|
+
import '@stryke/types/package-json';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'oxc-parser';
|
|
16
|
+
import 'semver';
|
|
17
|
+
import 'unplugin';
|
|
18
|
+
import '@stryke/types/tsconfig';
|
|
19
|
+
import 'typescript';
|
|
20
|
+
import '@stryke/json/types';
|
|
21
|
+
import 'memfs';
|
|
22
|
+
import 'node:fs';
|
|
23
|
+
import 'unionfs';
|
|
24
|
+
import '@stryke/types/array';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-openapi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from OpenAPI specifications.",
|
|
6
6
|
"repository": {
|
|
@@ -105,19 +105,19 @@
|
|
|
105
105
|
"powerlines-plugin"
|
|
106
106
|
],
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"@stryke/path": "^0.
|
|
108
|
+
"@stryke/path": "^0.18.5",
|
|
109
109
|
"@stryke/type-checks": "^0.3.10",
|
|
110
110
|
"@stryke/types": "^0.10.0",
|
|
111
111
|
"defu": "^6.1.4",
|
|
112
112
|
"jiti": "^2.6.1",
|
|
113
113
|
"openapi-typescript": "^7.10.1",
|
|
114
|
-
"powerlines": "^0.
|
|
114
|
+
"powerlines": "^0.16.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@powerlines/nx": "^0.
|
|
118
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
119
|
-
"@types/node": "^22.
|
|
117
|
+
"@powerlines/nx": "^0.10.1",
|
|
118
|
+
"@powerlines/plugin-plugin": "^0.11.9",
|
|
119
|
+
"@types/node": "^22.19.0"
|
|
120
120
|
},
|
|
121
121
|
"publishConfig": { "access": "public" },
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "097e9f257b733719a3aead815ef79686f4c46f25"
|
|
123
123
|
}
|