Skip to content

Commit 175caa4

Browse files
committed
Remove restricted files
1 parent 5349bc1 commit 175caa4

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

src/Publishers/DataTablesPublisher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function publish(): bool
1919
return $this
2020
->addPath('js')
2121
->addPath('types')
22+
->removePattern('*.ts')
2223
->merge(true);
2324
}
2425
}

src/Publishers/DataTablesStylePublisher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function publish(): bool
2121
->addPath('images')
2222
->addPath('js')
2323
->addPath('types')
24+
->removePattern('*.ts')
2425
->merge(true);
2526
}
2627
}

src/Publishers/JQueryPublisher.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,17 @@ class JQueryPublisher extends FrontendPublisher
88
{
99
protected string $vendorPath = 'components/jquery';
1010
protected string $publicPath = 'jquery';
11+
12+
/**
13+
* Reads files from the sources and copies them out to their destinations.
14+
* This method should be reimplemented by child classes intended for
15+
* discovery.
16+
*/
17+
public function publish(): bool
18+
{
19+
return $this
20+
->addPath('/')
21+
->removePattern('*.md')
22+
->merge(true);
23+
}
1124
}

tests/PublishersTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function publisherProvider(): array
3434
DataTablesPublisher::class,
3535
[
3636
'datatables/js/jquery.dataTables.js',
37-
'datatables/types/types.d.ts',
3837
],
3938
],
4039
[

0 commit comments

Comments
 (0)