Skip to main content

How to Include npm Dependencies When Publishing a Custom Component?

While developing custom components and using npm packages, these dependencies are automatically packaged and uploaded to the Cloud Development platform when you execute the tcb lowcode publish command to deploy the component library. You do not need to perform any special manual operations to ensure npm packages are included.

Steps

  1. Develop Custom Components: In your development environment, install the required dependency packages using npm or yarn, and import these dependencies in the component code.

  2. Configure Cloud Development Environment: Ensure your Cloud Development environment is properly configured and you are logged into the Cloud Development Console.

  3. Publish Components: In the project root directory, run the following command to publish your component library:

    tcb lowcode publish

    This command automatically handles all dependencies, including npm packages, and packages them into the final component library.

Similar Issues

  • How to handle npm dependencies when publishing custom components?
  • Will npm dependencies be lost when publishing custom components?
  • How to include npm packages in custom component publishing?
  • Is it necessary to manually add npm dependencies when publishing custom components?
  • Can the tcb lowcode publish command handle npm dependencies?
  • Are npm dependencies automatically packaged when publishing custom components?
  • What are the steps for publishing custom components on the Cloud Development platform?
  • What should be noted about npm dependencies when publishing custom components?
  • How to ensure npm dependencies are included when publishing custom components?
  • What is the role of npm dependencies in publishing custom components?