Skip to content

Conversation

@lajz
Copy link

@lajz lajz commented Sep 11, 2025

Before this PR

The Conjure plugin only supported publishing the conjure bindings TypeScript package, limiting users who need additional TypeScript outputs (e.g., different validation libraries like zod, or different build targets).

After this PR

Adds support for multiple TypeScript projects via the typescriptProject configuration block:

conjure {
    typescript { packageName = "@company/api" }

    typescriptProject('zod') {
        packageName = "@company/api-zod"
    }
}

Key changes:

  • New typescriptProject(String) method on ConjureExtension
  • Task generation with suffixes: compileConjureTypeScriptZod, publishTypeScriptZod, etc.
  • Default projects use immediate setup, additional projects use afterEvaluate for configuration access
  • Fully backward compatible - existing configurations unchanged

Enables use cases like generating packages for multiple TypeScript validation libraries, or building SDKs from existing backend APIs

==COMMIT_MSG==
Typescript publishing extension
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Sep 11, 2025

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

Typescript publishing extension

Check the box to generate changelog(s)

  • Generate changelog entry

@lajz lajz marked this pull request as ready for review September 12, 2025 08:03
@stale
Copy link

stale bot commented Oct 18, 2025

This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days.

@stale stale bot added the stale label Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants