Include Npm packages inside my Laravel Package

172 Views Asked by At

I am building a Laravel package which needs npm packages . Now the problem is that when the user install the package via composer I need him to run npm install to install the required npm packages of my package . I don't need to include it in compose.json as a post-install-cmd and don't want to call those commands programmatically .

It's like II need a way to install the packages from the package.json file of my Laravel package

is there any way to do that ?

0

There are 0 best solutions below