@typespec/http-client-python 0.30.1-alpha.20260603.2 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,13 +75,6 @@ New-Item -ItemType Directory -Force -Path "$outputPath/packages" | Out-Null
|
|
|
75
75
|
$emitterVersion = node -p -e "require('$packageRoot/package.json').version"
|
|
76
76
|
Write-Host "Package version: $emitterVersion"
|
|
77
77
|
|
|
78
|
-
# Stamp prerelease version if BuildNumber is provided
|
|
79
|
-
if ($BuildNumber) {
|
|
80
|
-
$versionTag = $Prerelease ? "-alpha" : "-beta"
|
|
81
|
-
$emitterVersion = "$emitterVersion$versionTag.$BuildNumber"
|
|
82
|
-
Write-Host "Stamped prerelease version: $emitterVersion"
|
|
83
|
-
}
|
|
84
|
-
|
|
85
78
|
Push-Location "$packageRoot"
|
|
86
79
|
try {
|
|
87
80
|
# Step 1: Build the emitter and generator
|
|
@@ -94,20 +87,12 @@ try {
|
|
|
94
87
|
Invoke-LoggedCommand "npm run lint" -GroupOutput
|
|
95
88
|
}
|
|
96
89
|
|
|
97
|
-
# Step 3:
|
|
98
|
-
if ($BuildNumber) {
|
|
99
|
-
Write-Host "`n=== Updating package.json version to $emitterVersion ===" -ForegroundColor Cyan
|
|
100
|
-
$packageJson = Get-Content -Raw "package.json" | ConvertFrom-Json -AsHashtable
|
|
101
|
-
$packageJson.version = $emitterVersion
|
|
102
|
-
$packageJson | ConvertTo-Json -Depth 100 | Out-File -Path "package.json" -Encoding utf8 -NoNewline -Force
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
# Step 4: Create npm package
|
|
90
|
+
# Step 3: Create npm package
|
|
106
91
|
Write-Host "`n=== Creating npm package ===" -ForegroundColor Cyan
|
|
107
92
|
Invoke-LoggedCommand "npm pack"
|
|
108
93
|
Copy-Item "typespec-http-client-python-$emitterVersion.tgz" -Destination "$outputPath/packages"
|
|
109
94
|
|
|
110
|
-
# Step
|
|
95
|
+
# Step 4: Verify package can be installed
|
|
111
96
|
Write-Host "`n=== Verifying package installation ===" -ForegroundColor Cyan
|
|
112
97
|
Invoke-LoggedCommand "npm install typespec-http-client-python-$emitterVersion.tgz" -GroupOutput
|
|
113
98
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/http-client-python",
|
|
3
|
-
"version": "0.30.1
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec emitter for Python SDKs",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -126,4 +126,4 @@
|
|
|
126
126
|
"typescript-eslint": "^8.49.0",
|
|
127
127
|
"vitest": "^4.0.15"
|
|
128
128
|
}
|
|
129
|
-
}
|
|
129
|
+
}
|