@pentacore/vite-plugin-laravel-typefinder 5.0.2 → 6.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { exec as e, spawn as t } from "node:child_process";
2
2
  import { promisify as n } from "node:util";
3
3
  import r from "picomatch";
4
4
  import { EventEmitter as i } from "node:events";
5
- //#region src/matcher.ts
5
+ // src/matcher.ts
6
6
  var a = (e) => {
7
7
  if (e.length === 0) return () => !1;
8
8
  let t = e.map((e) => `${e.replace(/\\/g, "/").replace(/\/$/, "")}/**/*.php`), n = r(t, { dot: !0 });
@@ -174,9 +174,7 @@ var a = (e) => {
174
174
  let t = e instanceof Error ? e.message : String(e);
175
175
  throw Error(`[typefinder] build-time generation failed: ${t}`, { cause: e });
176
176
  }
177
- return;
178
- }
179
- if (d && !d.dead) {
177
+ } else if (d && !d.dead) {
180
178
  let e = await d.regen([]);
181
179
  e.changed.length > 0 && process.stderr.write(`[typefinder] initial regen: ${e.changed.length} file(s) in ${e.duration_ms}ms\n`);
182
180
  }
@@ -196,5 +194,4 @@ var a = (e) => {
196
194
  }
197
195
  return t;
198
196
  };
199
- //#endregion
200
197
  export { c as default, c as typefinder };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentacore/vite-plugin-laravel-typefinder",
3
- "version": "5.0.2",
3
+ "version": "6.0.0",
4
4
  "description": "Vite plugin for Laravel Typefinder — auto-generate TypeScript types from Models, Enums, Casts, and Requests.",
5
5
  "keywords": [
6
6
  "vite",
@@ -39,11 +39,11 @@
39
39
  "@eslint/js": "^10.0.1",
40
40
  "@types/node": "^24.19.1",
41
41
  "@types/picomatch": "^4.0.3",
42
- "@vitest/coverage-v8": "^5.0.3",
43
- "eslint": "^10.12.0",
42
+ "@vitest/coverage-v8": "^5.1.0",
43
+ "eslint": "^10.14.0",
44
44
  "typescript": "^6.0.3",
45
- "typescript-eslint": "^8.71.0",
46
- "vite": "^8.3.2",
45
+ "typescript-eslint": "^8.72.1",
46
+ "vite": "^8.3.3",
47
47
  "vite-plugin-dts": "^5.1.2",
48
48
  "vitest": "^5.0.3"
49
49
  },