Skip to content

Beta#14

Merged
XXanderWP merged 5 commits into
mainfrom
beta
Feb 6, 2026
Merged

Beta#14
XXanderWP merged 5 commits into
mainfrom
beta

Conversation

@XXanderWP
Copy link
Copy Markdown
Owner

No description provided.

XXanderWP and others added 5 commits February 6, 2026 09:45
Correct the npm badge URL to reference the scoped package
@xxanderwp/env-types-webpack-plugin and add a downloads badge
for package visibility
Add icon.png and include a centered image block in the README to
improve visual presentation of the project header.
Add support for a useValuesAsTypes option across the generator, plugin,
type definitions, README and tests. When enabled (env var
USE_VALUES_AS_TYPES=1 or options.useValuesAsTypes=true), the generator
uses the actual .env values as string literal types (e.g.
DB_HOST: "localhost") instead of the generic string type. Default is
false to preserve previous behavior.

This change includes:
- src/EnvTypesGenerator.ts: new option handling, value parsing and type
  selection, and integration with disablePartialType handling.
- src/EnvTypesPlugin.ts: pass option through to generator and set the
  corresponding environment variable for the child process.
- src/types/EnvTypesGenerator.d.ts: documented the new option.
- README.md: documented the new option in configuration table.
- tests/EnvTypesGenerator.test.ts: added test to verify the new behavior
  and adjusted tests to set silent where needed.

No breaking changes; behavior remains the same unless the new option is
explicitly enabled.
@XXanderWP XXanderWP merged commit e976851 into main Feb 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant