Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prerelease module on new modulev3 #106

Merged
merged 4 commits into from
Oct 4, 2023
Merged

Conversation

rulasg
Copy link
Owner

@rulasg rulasg commented Oct 4, 2023

Make module prerelease by adding PrivateData.PsData.PreRelease info to Manifest

@rulasg rulasg self-assigned this Oct 4, 2023
try {

$modulename = "MyModule"

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
)
throw "Injected error from New-MymoduleManifest."
try {

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
function script:New-MyModuleManifest {
[CmdletBinding()]
param(
[Parameter(Mandatory)][string]$Path,

Check warning

Code scanning / PSScriptAnalyzer

The parameter 'Path' has been declared but not used.

The parameter 'Path' has been declared but not used.
[CmdletBinding()]
param(
[Parameter(Mandatory)][string]$Path,
[Parameter(Mandatory)][string]$RootModule,

Check warning

Code scanning / PSScriptAnalyzer

The parameter 'RootModule' has been declared but not used.

The parameter 'RootModule' has been declared but not used.
param(
[Parameter(Mandatory)][string]$Path,
[Parameter(Mandatory)][string]$RootModule,
[Parameter(Mandatory)][string]$PreRelease

Check warning

Code scanning / PSScriptAnalyzer

The parameter 'PreRelease' has been declared but not used.

The parameter 'PreRelease' has been declared but not used.
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
}

$result = Add-LL_ModuleV3 -Name $modulename @ErrorParameters

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
@rulasg rulasg merged commit 362922c into main Oct 4, 2023
@rulasg rulasg deleted the prerelease-module-on-new-modulev3 branch October 4, 2023 18:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant