You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
18
18
### Changed
19
19
20
20
-`Deploy-NovaPackage` now shows a concise resolved-upload summary before execution, reports progress while multiple artifacts are uploading, and prints a short completion summary with a suggested verification step after successful raw uploads.
21
+
-`Get-NovaProjectInfo` now fails with clearer recovery guidance when `-Path` does not exist, points to a file, or the target folder is missing `project.json`.
Copy file name to clipboardExpand all lines: RELEASE_NOTE.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,15 @@ This file summarizes the release notes for NovaModuleTools. **UNRELEASED** chang
14
14
### Changed
15
15
16
16
-`Deploy-NovaPackage` now shows clearer terminal feedback during raw package uploads, including a concise pre-flight summary, progress across multiple artifacts, and a short verification hint after success.
17
+
-`Get-NovaProjectInfo` now explains how to recover when `-Path` is invalid or the target folder is not a Nova project root.
17
18
18
19
### Deprecated
19
20
20
21
### Removed
21
22
22
23
### Fixed
23
24
24
-
- PowerShell command help `RELATED LINKS` now use valid help-topic links instead of GitHub blob pages.
25
+
- PowerShell command help `RELATED LINKS` now use valid help-topic.
Stop-NovaOperation-Message "Project path not found: $Path. Run Get-NovaProjectInfo from a Nova project root or pass -Path to an existing project folder."-ErrorId 'Nova.Environment.ProjectPathNotFound'-Category ObjectNotFound -TargetObject $Path
28
+
}
29
+
30
+
if (-not (Test-Path-LiteralPath $resolvedPath-PathType Container)) {
31
+
Stop-NovaOperation-Message "Project path must be a folder: $resolvedPath. Pass -Path to the project root that contains project.json."-ErrorId 'Nova.Environment.ProjectPathNotDirectory'-Category InvalidArgument -TargetObject $resolvedPath
32
+
}
33
+
34
+
return$resolvedPath
35
+
}
36
+
37
+
functionAssert-NovaProjectJsonPresence {
38
+
[CmdletBinding()]
39
+
param(
40
+
[Parameter(Mandatory)][string]$ProjectRoot,
41
+
[Parameter(Mandatory)][string]$ProjectJson
42
+
)
43
+
44
+
if (-not (Test-Path-LiteralPath $ProjectJson-PathType Leaf)) {
45
+
Stop-NovaOperation-Message "project.json not found in project root: $ProjectRoot. Run Get-NovaProjectInfo from a folder that contains project.json or pass -Path to that folder."-ErrorId 'Nova.Environment.ProjectJsonNotFound'-Category ObjectNotFound -TargetObject $ProjectJson
It 'throws a clear error when the project path does not exist' {
19
+
{Get-NovaProjectInfoContext-Path (Join-Path$script:root'missing')} | Should -Throw '*Project path not found:*Run Get-NovaProjectInfo from a Nova project root or pass -Path to an existing project folder.*'
20
+
}
21
+
22
+
It 'throws a clear error when the project path points to a file instead of a folder' {
23
+
$filePath=Join-Path$script:root'project.txt'
24
+
Set-Content-LiteralPath $filePath-Value 'content'
25
+
26
+
{Get-NovaProjectInfoContext-Path $filePath} | Should -Throw '*Project path must be a folder:*Pass -Path to the project root that contains project.json.*'
27
+
}
28
+
18
29
It 'throws when project.json is missing in the given folder' {
19
-
{Get-NovaProjectInfoContext-Path $script:root} | Should -Throw
30
+
{Get-NovaProjectInfoContext-Path $script:root} | Should -Throw'*project.json not found in project root:*Run Get-NovaProjectInfo from a folder that contains project.json or pass -Path to that folder.*'
20
31
}
21
32
22
33
It 'returns the resolved root, project.json path, and parsed JSON data' {
0 commit comments