openSUSE / obs-service-node_modules

MIT License
7 stars 11 forks source link

Question: How to handle projects that require Yarn. #28

Closed ChrTall closed 1 year ago

ChrTall commented 1 year ago

I am currently trying to package https://github.com/marktext/marktext

They require yarn, which is hardcoded in their scripts, so npm install --package-lock-only --legacy-peer-deps fails. Is it possible to create a yarn.lock and rename it or is npm required for the service to work?

AdamMajer commented 1 year ago

It requires npm to run. But keep in mind the recommended way of installing things is --ignore-scripts so that random scripts are not running. You can then run these at some later directly.