@pentacore/vite-plugin-laravel-typefinder 3.0.1 → 4.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.
package/dist/index.d.ts CHANGED
@@ -73,7 +73,5 @@ interface TypefinderOptions {
73
73
  */
74
74
  declare const typefinder: ({ watch, command, debounceMs, }?: TypefinderOptions) => Plugin;
75
75
 
76
- // @ts-ignore
77
- export = typefinder;
78
- export { typefinder };
76
+ export { typefinder as default, typefinder };
79
77
  export type { TypefinderOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentacore/vite-plugin-laravel-typefinder",
3
- "version": "3.0.1",
3
+ "version": "4.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",
@@ -15,20 +15,19 @@
15
15
  "type": "git",
16
16
  "url": "git+https://github.com/pentacore/laravel-typefinder.git"
17
17
  },
18
+ "type": "module",
18
19
  "scripts": {
19
20
  "build": "unbuild",
20
21
  "dev": "unbuild --stub",
21
22
  "lint": "eslint src/",
22
23
  "lint:fix": "eslint src/ --fix"
23
24
  },
24
- "main": "dist/index.cjs",
25
25
  "module": "dist/index.mjs",
26
- "types": "dist/index.d.ts",
26
+ "types": "dist/index.d.mts",
27
27
  "exports": {
28
28
  ".": {
29
29
  "import": "./dist/index.mjs",
30
- "require": "./dist/index.cjs",
31
- "types": "./dist/index.d.ts"
30
+ "types": "./dist/index.d.mts"
32
31
  }
33
32
  },
34
33
  "devDependencies": {