chore: package improvements#416
Merged
Merged
Conversation
@aziontech/builder
@aziontech/bundler-telemetry
@aziontech/client
@aziontech/config
@aziontech/presets
@aziontech/sql
@aziontech/storage
@aziontech/types
@aziontech/unenv-preset
@aziontech/utils
commit: |
pablodiehl
previously approved these changes
Apr 16, 2026
PatrickMenoti
approved these changes
Apr 16, 2026
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.
This pull request primarily focuses on simplifying and standardizing the Vite configuration across multiple packages by removing local alias mappings in favor of using workspace dependencies and externalizing shared packages. It also updates and adds several dependencies to improve compatibility and functionality, especially for the
unenv-presetandpresetspackages. Additionally, minor improvements are made to telemetry handling to increase robustness.Vite configuration simplification and dependency management:
vite.config.mjsfiles (builder,client,config,presets) to rely more on workspace dependencies and externalized shared packages like@aziontech/unenv-preset,@aziontech/utils,@aziontech/config, and@aziontech/presets. This reduces complexity and potential for path resolution errors. [1] [2] [3] [4] [5] [6]vite.config.mjsfiles to ensure that shared packages are not bundled, improving build performance and correctness. [1] [2] [3]Dependency updates and additions:
unenv-preset(accepts,string_decoder,timers-browserify) and updated the polyfill mapping forstring_decoderto use the correct entry point. [1] [2] [3] [4]mime-typesas a dependency inpresetsand updated the lockfile accordingly. Also removed a redundant dependency on@aziontech/presetsfrom its ownpackage.json. [1] [2] [3]Telemetry improvements:
runPhaseWithTelemetryfunction more robust by allowingtelemetry,telemetryEnabled, andoutputFormatto be optional, and using optional chaining to prevent runtime errors if telemetry is undefined. [1] [2]getConfig()method to theTelemetryCollectorclass for easier access to its configuration.Lockfile maintenance:
pnpm-lock.yamlto reflect the new and removed dependencies, ensuring consistency with the changes inpackage.jsonfiles. [1] [2] [3] [4]These changes collectively streamline the build process, improve maintainability, and enhance compatibility across the monorepo.