PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

Publish-PSResource vs. Publish-Module

Open Skatterbrainz opened this issue 1 year ago • 1 comments

Summary of the new feature / enhancement

I've been using Publish-Module for quite a few years, and all of my modules are maintained in GitHub with local clones. When I published to the PS Gallery before, it never copied the .git and GitHub related folders. With Publish-PSResource it's copying up everything. Is there a way to filter out those folders/files during a Publish-PSResource operation?

Proposed technical implementation details (optional)

Add a -Exclude parameter maybe?

Skatterbrainz avatar Nov 13 '24 13:11 Skatterbrainz

as a workaround, you can store publishable files in repository subfolder. Or "build" a module before publishing . Building means copying all required files to separate folder and publish from there.

peetrike avatar Jan 23 '25 11:01 peetrike