SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
137 stars 57 forks source link

MBT build in Project with NPM Workspaces fails to use local dependencies #1048

Open BenReim opened 1 year ago

BenReim commented 1 year ago

Issue When running a npm script through mtb in a project with npm workspaces, the local node dependencies aren't resolved. E.g. in the sample provided below, the global ui5 installation of the Business Application Studio is used (v2) instead of the local ui5 dev dependency (v3).

Please provide the following info:

Steps to Reproduce:

package.json (excerpt) in root of npm workspaces project

{
"workspaces": [
"./packages/approuter",
"./packages/html5"
]
}

mta.yml (excerpt)

- name: ui5app
type: html5
path: .
build-parameters:
build-result: dist
builder: custom
commands:
- npm run build:ui5:cf -w html5
supported-platforms: []
geert-janklaps commented 1 year ago

I'm facing the exact same issue, any updates or resolutions on this issue?