Skip to content

Conversation

@WataruNishimura
Copy link
Contributor

@WataruNishimura WataruNishimura commented May 22, 2024

Summary

  • Introduce the sail option and execute the generate model command via sail.

Detail

  • If the sail flag is enabled, php artisan will be replaced with sail artisan.
  • Error handling relies on Sail or npm. Laravel-typegen executes only the sail command.

Usage

npm run laravel-typegen --sail

Concerns

sail is executed by ./vendor/bin/sail now. If a breaking change in Sail occurs, it may not work.

relative issue

#27

@7nohe
Copy link
Owner

7nohe commented May 25, 2024

@WataruNishimura Thank you for creating the pull request. The code looks good, but we recently made changes to generate.ts to make it work without a PHP runtime, which has caused a conflict. Could you please resolve this conflict?

@WataruNishimura
Copy link
Contributor Author

@7nohe Sure! I'll try to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants