fumeapp / modeltyper

Generate TypeScript interfaces from Laravel Models
MIT License
135 stars 16 forks source link

Groundwork for v3 #82

Open ayrtonandino opened 1 day ago

ayrtonandino commented 1 day ago

Groundwork for v3

Some changes in preparation for V3:

ayrtonandino commented 1 day ago

Most of the changes come form Pint, consequence of upgrading it.

While updating the test.yml, I notice this line, which is not used anywhere, so i updated the composer installation step to use it, turns out modeltyper fails when laravel/framework < 10.43.0, so i added it to conflicts.

Also, testing on Windows fails due to different line endings ( \r\n on windows, \n on unix), so i added normalizeLineEndings method to take care of it only if Windows.

tcampbPPU commented 21 hours ago

Thanks will check this out when i get a chance soon 🔥