Skip to content

Commit 7133a6f

Browse files
committed
Any esbuild is executable #11465
1 parent 4cc2a0d commit 7133a6f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

configuration/Permissions.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
declare(strict_types=1);
44

5+
$esbuild = array_map(
6+
fn (string $path) => [
7+
'path' => $path,
8+
'permissions' => '0750',
9+
],
10+
explode(PHP_EOL, mb_trim(`find node_modules/ -type f -size +5M -path '*/bin/esbuild'`)),
11+
);
12+
513
return [
14+
...$esbuild,
615
[
716
'path' => 'data/accounting',
817
'permissions' => '0770',
@@ -131,8 +140,4 @@
131140
'path' => 'node_modules/.bin/*',
132141
'permissions' => '0750',
133142
],
134-
[
135-
'path' => 'node_modules/@esbuild/linux-x64/bin/*',
136-
'permissions' => '0750',
137-
],
138143
];

0 commit comments

Comments
 (0)