@pentacore/vite-plugin-laravel-typefinder 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
A Vite plugin that automatically runs `php artisan typefinder:generate` on build start and re-runs it (debounced) whenever watched PHP files change via HMR.
|
|
4
4
|
|
|
5
|
+
> **This plugin is a companion to the [`pentacore/laravel-typefinder`](https://packagist.org/packages/pentacore/laravel-typefinder) Composer package — you must install that first.** The plugin's only job is to invoke its artisan command at the right moments; all type generation lives in the PHP package. Installing this npm package without the Composer package will result in the plugin failing to find `php artisan typefinder:generate`.
|
|
6
|
+
|
|
5
7
|
## Requirements
|
|
6
8
|
|
|
9
|
+
- The Composer package `pentacore/laravel-typefinder` installed and auto-discovered in your Laravel app.
|
|
7
10
|
- Vite 6+
|
|
8
11
|
- Node 18+
|
|
12
|
+
- ESM-only — the package exposes only `dist/index.mjs`. Consumers must `import` (not `require`) it. Any modern Vite/Laravel app already meets this.
|
|
9
13
|
|
|
10
14
|
## Installation
|
|
11
15
|
|
|
12
16
|
```bash
|
|
17
|
+
composer require pentacore/laravel-typefinder
|
|
13
18
|
npm i -D @pentacore/vite-plugin-laravel-typefinder
|
|
14
19
|
```
|
|
15
20
|
|
package/package.json
CHANGED