Skip to content

consistent type generation#342

Merged
theoephraim merged 1 commit intomainfrom
feat/env-independent-typegen
Mar 10, 2026
Merged

consistent type generation#342
theoephraim merged 1 commit intomainfrom
feat/env-independent-typegen

Conversation

@theoephraim
Copy link
Copy Markdown
Member

  • Move type generation before resolveEnvValues() for deterministic output
  • Track isEnvSpecific on data sources (applyForEnv, conditional @disable/@import)
  • Filter env-specific sources from type gen via defsForTypeGeneration
  • Skip items only defined in env-specific files from generated types
  • Add auto=false param to @generateTypes to disable during load/run
  • Add varlock typegen command for manual type generation
  • 25 new tests for type generation scenarios

…mmand

- Move type generation before resolveEnvValues() for deterministic output
- Track isEnvSpecific on data sources (applyForEnv, conditional @disable/@import)
- Filter env-specific sources from type gen via defsForTypeGeneration
- Skip items only defined in env-specific files from generated types
- Add auto=false param to @generateTypes to disable during load/run
- Add varlock typegen command for manual type generation
- 25 new tests for type generation scenarios
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 9, 2026

🦋 Changeset detected

Latest commit: 585cd01

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
varlock Minor
@varlock/astro-integration Major
@varlock/nextjs-integration Major
@varlock/vite-integration Major
@varlock/1password-plugin Major
@varlock/aws-secrets-plugin Major
@varlock/azure-key-vault-plugin Major
@varlock/bitwarden-plugin Major
@varlock/google-secret-manager-plugin Major
@varlock/infisical-plugin Major
@varlock/pass-plugin Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 9, 2026

Open in StackBlitz

varlock

npm i https://pkg.pr.new/varlock@342

@varlock/astro-integration

npm i https://pkg.pr.new/@varlock/astro-integration@342

@varlock/nextjs-integration

npm i https://pkg.pr.new/@varlock/nextjs-integration@342

@varlock/vite-integration

npm i https://pkg.pr.new/@varlock/vite-integration@342

@varlock/1password-plugin

npm i https://pkg.pr.new/@varlock/1password-plugin@342

@varlock/aws-secrets-plugin

npm i https://pkg.pr.new/@varlock/aws-secrets-plugin@342

@varlock/azure-key-vault-plugin

npm i https://pkg.pr.new/@varlock/azure-key-vault-plugin@342

@varlock/bitwarden-plugin

npm i https://pkg.pr.new/@varlock/bitwarden-plugin@342

@varlock/google-secret-manager-plugin

npm i https://pkg.pr.new/@varlock/google-secret-manager-plugin@342

@varlock/infisical-plugin

npm i https://pkg.pr.new/@varlock/infisical-plugin@342

@varlock/pass-plugin

npm i https://pkg.pr.new/@varlock/pass-plugin@342

commit: 16978f5

@theoephraim theoephraim requested a review from philmillman March 9, 2026 20:35
@theoephraim
Copy link
Copy Markdown
Member Author

fixes #335 and #263

@theoephraim theoephraim merged commit e30ec1f into main Mar 10, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants