Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants