maiyama18 / LicensesPlugin

A Swift Package build tool plugin to collect licenses of the library used in your swift package
MIT License
76 stars 3 forks source link

Use .buildCommand instead of .prebuildCommand #3

Closed maiyama18 closed 1 year ago

maiyama18 commented 1 year ago

Now this library uses .prebuildCommand, so the plugin is executed on every build, which is unnecessary. It would be better if the plugin only run when needed by replacing .prebuildCommand by .buildCommand and specify input and output files properly.

https://github.com/maiyama18/LicensesPlugin/blob/7130ca28d84377fcbf830b68757fdcdb977abb20/Plugins/LicensesPlugin/LicensesPlugin.swift#L50-L55p