Select to view content in your preferred language

v1.13 UNDOCUMENTED BREAKING CHANGE: lerna commands have been removed from client package.json

567
3
12-19-2023 09:00 PM
JoshGore
Occasional Contributor

In Experience Builder 1.13 the following lines have been removed from the client package.json:

    "postinstall": "npm run lerna-bootstrap",
    "lerna-bootstrap": "lerna bootstrap"

 
This breaks our CI/CD and automated install as we now can't just run npm ci / npm install and have all widget dependencies in your-extensions installed. This doesn't appear to be documented in breaking changes.

Is this change intentional with an alternative?

0 Kudos
3 Replies
Junshan_Liu
Frequent Contributor

Hi @JoshGore  This is an intentional change as the lerna introduces some vulnerabilities, you can go to the widget folder to run the "npm ci".

0 Kudos
JoshGore
Occasional Contributor

We have around 25 custom widgets in our solution with further being developed, many of which have dependencies. Our pipelines relied on being able to run npm ci or install in the client folder and have these dependencies installed, without needing to traverse into each widget folder. It could be useful to have npm workspaces or similar support to help with this.

Note the lerna.json file hasn't been removed so currently it's also possible to run lerna with npx.

The documentation here https://developers.arcgis.com/experience-builder/guide/third-party-libraries/ needs updating to reflect this change too.

0 Kudos
Junshan_Liu
Frequent Contributor

Thanks! We'll consider how to add this feature back in future releases.

0 Kudos