Skip to content

chore: package improvements#416

Merged
jcbsfilho merged 5 commits into
stagefrom
chore/package-improvements
Apr 16, 2026
Merged

chore: package improvements#416
jcbsfilho merged 5 commits into
stagefrom
chore/package-improvements

Conversation

@jcbsfilho
Copy link
Copy Markdown
Collaborator

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-preset and presets packages. Additionally, minor improvements are made to telemetry handling to increase robustness.

Vite configuration simplification and dependency management:

  • Removed local alias mappings from multiple vite.config.mjs files (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]
  • Updated the list of external dependencies in vite.config.mjs files to ensure that shared packages are not bundled, improving build performance and correctness. [1] [2] [3]

Dependency updates and additions:

  • Added new dependencies to unenv-preset (accepts, string_decoder, timers-browserify) and updated the polyfill mapping for string_decoder to use the correct entry point. [1] [2] [3] [4]
  • Added mime-types as a dependency in presets and updated the lockfile accordingly. Also removed a redundant dependency on @aziontech/presets from its own package.json. [1] [2] [3]

Telemetry improvements:

  • Made the runPhaseWithTelemetry function more robust by allowing telemetry, telemetryEnabled, and outputFormat to be optional, and using optional chaining to prevent runtime errors if telemetry is undefined. [1] [2]
  • Added a getConfig() method to the TelemetryCollector class for easier access to its configuration.

Lockfile maintenance:

  • Updated pnpm-lock.yaml to reflect the new and removed dependencies, ensuring consistency with the changes in package.json files. [1] [2] [3] [4]

These changes collectively streamline the build process, improve maintainability, and enhance compatibility across the monorepo.

@jcbsfilho jcbsfilho requested a review from a team as a code owner April 15, 2026 15:46
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 15, 2026

Open in StackBlitz

@aziontech/builder

npm i https://pkg.pr.new/aziontech/lib/@aziontech/builder@416

@aziontech/bundler-telemetry

npm i https://pkg.pr.new/aziontech/lib/@aziontech/bundler-telemetry@416

@aziontech/client

npm i https://pkg.pr.new/aziontech/lib/@aziontech/client@416

@aziontech/config

npm i https://pkg.pr.new/aziontech/lib/@aziontech/config@416

@aziontech/presets

npm i https://pkg.pr.new/aziontech/lib/@aziontech/presets@416

@aziontech/sql

npm i https://pkg.pr.new/aziontech/lib/@aziontech/sql@416

@aziontech/storage

npm i https://pkg.pr.new/aziontech/lib/@aziontech/storage@416

@aziontech/types

npm i https://pkg.pr.new/aziontech/lib/@aziontech/types@416

@aziontech/unenv-preset

npm i https://pkg.pr.new/aziontech/lib/@aziontech/unenv-preset@416

@aziontech/utils

npm i https://pkg.pr.new/aziontech/lib/@aziontech/utils@416

commit: f35a0c2

pablodiehl
pablodiehl previously approved these changes Apr 16, 2026
@jcbsfilho jcbsfilho merged commit be6e930 into stage Apr 16, 2026
7 checks passed
@jcbsfilho jcbsfilho deleted the chore/package-improvements branch April 16, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants