psake / PowerShellBuild

Common build tasks for psake and Invoke-Build that build and test PowerShell modules
MIT License
133 stars 24 forks source link

Fix exclude files on compile #41

Closed pauby closed 4 years ago

pauby commented 4 years ago

Description

Related Issue

40 - note that I added this PR for discussion so it's clearer what I'm doing.

Motivation and Context

Currently, if you compile the module then all PS1 files found recursively from General.SrcRootDir are included into the compiled PSM1 file. This is clearly not desired behaviour.

How Has This Been Tested?

This issue was found, fixed and tested in one of my own private projects. It now has the desired behaviour.

Types of changes

Checklist:

Fixes #40

pauby commented 4 years ago

The lint failure seems to be a problem with the pipeline as all the PSSA highlights are warnings but there is an error at the end.

pauby commented 4 years ago

I'm putting this comment here just to draw attention to the lint error which looks very much to be a non-issue.

devblackops commented 4 years ago

@pauby Lint errors are fixed now https://github.com/psake/PowerShellBuild/commit/b9ebdd875bbac62d152421432566513a5e1fc21b. Shouldn't be an issue.