Skip to content

Conversation

@getlarge
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2025 18:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the module settings for the kratos-cli package by removing deprecated properties from the library configuration and switching to modern Node ESM options in the main configuration.

  • Removed "module": "Preserve" and "moduleResolution": "bundler" from tsconfig.lib.json.
  • Changed "module" from "commonjs" to "nodenext" and added "moduleResolution": "nodenext" in tsconfig.json.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/kratos-cli/tsconfig.lib.json Removed outdated module settings to streamline library build configuration.
packages/kratos-cli/tsconfig.json Updated module settings to use the modern nodenext option for ESM support.
Comments suppressed due to low confidence (2)

packages/kratos-cli/tsconfig.lib.json:5

  • Removing explicit module and moduleResolution settings may cause differences in how modules are processed between the library and application builds; verify that this change aligns with the intended build strategy.
"module": "Preserve",

packages/kratos-cli/tsconfig.json:4

  • The switch from 'commonjs' to 'nodenext' improves compatibility with modern Node ESM features; ensure that all parts of the codebase and dependencies are ready to support this configuration.
"module": "nodenext",

@nx-cloud
Copy link

nx-cloud bot commented May 12, 2025

View your CI Pipeline Execution ↗ for commit 9af64fc.

Command Status Duration Result
nx affected -t lint,typecheck,test,build --para... ✅ Succeeded 13s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-12 18:19:09 UTC

@sonarqubecloud
Copy link

@getlarge getlarge merged commit 186da20 into main May 12, 2025
7 checks passed
@getlarge getlarge deleted the fix-kratos-cli-update-build-config branch May 12, 2025 18:21
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.

2 participants