Skip to content

share node_modules for different BTP application #1176

@yelisap

Description

@yelisap

We have a node js project, defined three BTP application in mta.yaml. All of they share a some package.json from root of the project.

// mta.yaml
- name: srv
   type: nodejs
   path: .
- name: schedule
   type: nodejs
   path: .
- name: workder
   type: nodejs
   path: .

After we build the project with mta build, in the build artifact, it will copy same node_module for each BTP application. Which will lead the mtar file become very huge size.

Is there any configure to avoid copy node_module for each BTP application?

Best Regards
Ye Li

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions