Skip to content

Commit

Permalink
Fix import of idx so @openapi-generator-plus/testing is not requi…
Browse files Browse the repository at this point in the history
…red at runtime
  • Loading branch information
karlvr committed Aug 22, 2024
1 parent 053fe53 commit 2685ee7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/fast-lemons-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@openapi-generator-plus/java-jaxrs-generator-common": patch
"@openapi-generator-plus/generator-common": patch
---

Fix import of `idx` so `@openapi-generator-plus/testing` is not required at runtime
2 changes: 1 addition & 1 deletion packages/generator-common/src/testing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CodegenResult } from '@openapi-generator-plus/testing'
import type { CodegenResult } from '@openapi-generator-plus/testing'
import { promises as fs } from 'fs'
import path from 'path'
import { tmpdir } from 'os'
Expand Down
1 change: 1 addition & 0 deletions packages/java-jaxrs-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"@openapi-generator-plus/generator-common": "workspace:*",
"@openapi-generator-plus/handlebars-templates": "workspace:*",
"@openapi-generator-plus/indexed-type": "^1.0.0",
"@openapi-generator-plus/java-like-generator-helper": "workspace:*",
"@openapi-generator-plus/types": "^2.17.0",
"change-case": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/java-jaxrs-common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Handlebars from 'handlebars'
import { loadTemplates, emit, registerStandardHelpers, sourcePosition, ActualHelperOptions } from '@openapi-generator-plus/handlebars-templates'
import { javaLikeGenerator, ConstantStyle, options as javaLikeOptions, JavaLikeContext } from '@openapi-generator-plus/java-like-generator-helper'
import { capitalize, commonGenerator, configBoolean, configNumber, configObject, configString, configStringArray, debugStringify, nullableConfigString } from '@openapi-generator-plus/generator-common'
import { idx } from '@openapi-generator-plus/testing'
import * as idx from '@openapi-generator-plus/indexed-type'

export { CodegenOptionsJava } from './types'

Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2685ee7

Please sign in to comment.