PowerShell / PowerShell/PSResourceGet

Publish-PSResource vs. Publish-Module

Open
#1,756 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Publish Issue-Enhancement
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by tracing the Publish-PSResource operation and comparing its package-file selection with Publish-Module. Confirm how .git and GitHub-related folders are currently included, then verify the requested exclusion behavior for a publish operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.