QuentinFarizon commented on issue #303:
URL: https://github.com/apache/cordova-cli/issues/303#issuecomment-643812857
I have worked around this issue in a funny way : by running a hook that
restores node_modules after cordova has finished messing with it.
In config.xml :
```
<hook src="hooks/before_build/run_yarn.js" type="before_build" />
```
hooks/before_build/run_yarn.js :
```
#!/usr/bin/env node
var exec = require('child_process').execSync;
module.exports = function(context) {
exec('rm package-lock.json || echo "No package-lock.json to remove"');
exec('yarn');
};
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]