Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Added bun & deno support to flushNodeModules() #404

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

thecodechef
Copy link
Contributor

src/Console/installCommand.php

-- before --

protected static function flushNodeModules()
{
    tap(new Filesystem, function ($files) {
        $files->deleteDirectory(base_path('node_modules'));
        
        $files->delete(base_path('yarn.lock'));
        $files->delete(base_path('package-lock.json'));
    });
}

-- after --

protected static function flushNodeModules()
{
    tap(new Filesystem, function ($files) {
        $files->deleteDirectory(base_path('node_modules'));
        
        $files->delete(base_path('yarn.lock'));
        $files->delete(base_path('bun.lockb'));
        $files->delete(base_path('deno.lock'));
        $files->delete(base_path('package-lock.json'));
    });
}

@taylorotwell taylorotwell merged commit 2d7ffd7 into laravel:2.x Sep 5, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants