@kubb/swagger-ts 2.0.0-beta.7 → 2.0.0-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/swagger-ts",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.8",
4
4
  "description": "Generator swagger-ts",
5
5
  "keywords": [
6
6
  "typescript",
@@ -49,11 +49,11 @@
49
49
  "json-schema-to-ts": "^2.9.2",
50
50
  "hotscript": "^1.0.13",
51
51
  "ts-toolbelt": "^9.6.0",
52
- "@kubb/core": "2.0.0-beta.7",
53
- "@kubb/parser": "2.0.0-beta.7",
54
- "@kubb/react": "2.0.0-beta.7",
55
- "@kubb/types": "2.0.0-beta.7",
56
- "@kubb/swagger": "2.0.0-beta.7"
52
+ "@kubb/core": "2.0.0-beta.8",
53
+ "@kubb/parser": "2.0.0-beta.8",
54
+ "@kubb/react": "2.0.0-beta.8",
55
+ "@kubb/types": "2.0.0-beta.8",
56
+ "@kubb/swagger": "2.0.0-beta.8"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "^18.2.38",
@@ -66,7 +66,7 @@
66
66
  "@kubb/tsup-config": "1.1.8"
67
67
  },
68
68
  "peerDependencies": {
69
- "@kubb/react": "2.0.0-beta.7"
69
+ "@kubb/react": "2.0.0-beta.8"
70
70
  },
71
71
  "packageManager": "pnpm@8.3.0",
72
72
  "engines": {
package/src/plugin.ts CHANGED
@@ -163,7 +163,6 @@ export const definePlugin = createPlugin<PluginOptions>((options) => {
163
163
  await this.fileManager.addIndexes({
164
164
  root,
165
165
  output,
166
- extName: '.ts',
167
166
  meta: { pluginKey: this.plugin.key },
168
167
  options: {
169
168
  isTypeOnly: true,
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { KubbPlugin, PluginFactoryOptions, ResolveNameParams } from '@kubb/core'
1
+ import type { KubbFile, KubbPlugin, PluginFactoryOptions, ResolveNameParams } from '@kubb/core'
2
2
  import type { AppMeta as SwaggerAppMeta, Exclude, Include, Override, ResolvePathOptions } from '@kubb/swagger'
3
3
 
4
4
  export type Options = {
@@ -13,6 +13,10 @@ export type Options = {
13
13
  * Name to be used for the `export * as {{exportAs}} from './'`
14
14
  */
15
15
  exportAs?: string
16
+ /**
17
+ * Add an extension to the generated imports and exports, default it will not use an extension
18
+ */
19
+ extName?: KubbFile.Extname
16
20
  }
17
21
  /**
18
22
  * Group the TypeScript types based on the provided name.