Can files which are neither .swift sources nor resources be listed explicitly in a package manifest?
Example: Given a BuildToolPlugin which conditionally processes files based on a .template extension; If the .template file is specified as a source, the compiler throws a warning that there's no such rule to process the file type:
.target(
name: "XYZ",
sources: ["file.template"]
plugins: [.plugin(name: "ProcessTemplate")]
),
If the .template file is specied as part of resources it gets copied into the bundle.
.target(
name: "XYZ",
resources: ["file.template"]
plugins: [.plugin(name: "ProcessTemplate")]
),
Is it correct that the only way to properly process a .template file is by not defining sources but passing the .template implicitly, as it is located in the module path and therefore passed to the build plugin (without throwing a warning)?