Skip to content

feat: add dts cli#3578

Merged
zhoushaw merged 4 commits intomainfrom
feat/dts-cli
Mar 25, 2025
Merged

feat: add dts cli#3578
zhoushaw merged 4 commits intomainfrom
feat/dts-cli

Conversation

@2heal1
Copy link
Member

@2heal1 2heal1 commented Mar 11, 2025

Description

add mf dts via installing @module-federation/enhanced

the mf dts command desc:

Usage: mf dts [options]

generate or fetch the mf types

Options:
  --root <root>         specify the project root directory
  --output <output>     specify the generated dts output directory
  --fetch <boolean>     fetch types from remote, default is true (default: true)
  --generate <boolean>  generate types, default is true (default: true)
  -c --config <config>  specify the configuration file, can be a relative or absolute path
  -m --mode <mode>      Specify the runtime environment. You can choose "dev" or "prod". The default value is "dev". After setting, the process.env.NODE_ENV environment variable will be
                        automatically injected with "development" or "production" according to the value. (default: "dev")
  -h, --help            display help for command

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2025

⚠️ No Changeset found

Latest commit: a403a00

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Mar 11, 2025

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit a403a00
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/67e20ed53a51b6000818e4ea
😎 Deploy Preview https://deploy-preview-3578--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@2heal1 2heal1 force-pushed the feat/dts-cli branch 2 times, most recently from 42a2972 to b72c237 Compare March 21, 2025 02:48
@2heal1 2heal1 changed the title WIP: feat: add dts cli feat: add dts cli Mar 21, 2025
@zhoushaw zhoushaw merged commit 62fe489 into main Mar 25, 2025
16 checks passed
@zhoushaw zhoushaw deleted the feat/dts-cli branch March 25, 2025 02:27
@2heal1 2heal1 mentioned this pull request Mar 25, 2025
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