kakashi
kakashi

Reputation: 1

NPM and Yarn lock files

Is there some method for npm to consume the yarn.lock file ? I am working on a project that uses the NpmInstallWebpackplugin and it's docs indicate that this plugin install modules on the fly via npm but I am using yarn, is there a way I might get this thing to work.

Upvotes: 0

Views: 42

Answers (2)

Rafael
Rafael

Reputation: 18522

NpmInstallWebpackPlugin has been last released 4 years ago (version 4.0.5 from August 17, 2017). There is a pull request adding yarn support merged in 2018, but it's not released to NPM.

If possible, you could eventually switch to yarn-add-webpack-plugin.

Upvotes: 1

anonkey
anonkey

Reputation: 102

Seem to be a yarn implementation : https://github.com/webpack-contrib/npm-install-webpack-plugin/blob/master/src/installer.js#L179

Could try to use it, fix problems and MR the repo

Upvotes: 0

Related Questions