Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BenReim opened this issue Apr 24, 2023 · 1 comment
Open

Comments

@BenReim
Copy link

BenReim commented Apr 24, 2023

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:

  • MBT Version: 1.2.23
  • OS Version: BAS

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
Copy link

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

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

No branches or pull requests

2 participants