Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.