Skip to content

Commit f618ef9

Browse files
committed
bug fix in ProjectName
1 parent 62552cd commit f618ef9

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

docs/ModuleTools/Invoke-MTBuild.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ copies all necessary resource files.
3535

3636
## EXAMPLES
3737

38-
### EXAMPLE 1
38+
### EXAMPLE 1: Builds module from the project files.
3939

4040
Invoke-MTBuild
41-
Builds module from the project files.
4241

43-
### EXAMPLE 2
42+
### EXAMPLE 2: Builds module and outputs verbose details during entire workflow.
4443

4544
Invoke-MTBuild -Verbose
46-
Builds module and outputs verbose details during entire workflow.
4745

4846
## PARAMETERS
4947

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ProjectName": "ModuleTools",
33
"Description": "ModuleTools is a versatile, standalone PowerShell module builder. Create anything from simple to robust modules with ease. Built for CICD and Automation.",
4-
"Version": "1.7.0",
4+
"Version": "1.7.1",
55
"copyResourcesToModuleRoot": false,
66
"Manifest": {
77
"Author": "Manjunath Beli",

src/public/GetMTProjectInfo.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ function Get-MTProjectInfo {
1414
$jsonData = Get-Content -LiteralPath $projectJson -Raw | ConvertFrom-Json -AsHashtable
1515

1616
$Out = @{}
17-
$Out['ProjectJSON'] = Join-Path -Path $ProjectRoot -ChildPath 'project.json'
17+
$Out['ProjectJSON'] = $ProjectJson
1818

1919
foreach ($key in $jsonData.Keys) {
2020
$Out[$key] = $jsonData[$key]
2121
}
2222
$Out.ProjectJson = $projectJson
2323
$Out.PSTypeName = 'MTProjectInfo'
24+
$ProjectName = $jsonData.ProjectName
2425

2526
## Folders
2627
$Out['ProjectRoot'] = $ProjectRoot

0 commit comments

Comments
 (0)