Skip to content

Commit

Permalink
fix emitter node module not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Oct 12, 2024
1 parent 4682b5f commit 0b02283
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/http-client-csharp/eng/scripts/Generation.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..')
# absolute path to locally built emitter module
$emitterPath = Resolve-Path (Join-Path $PSScriptRoot '..' '..' 'dist' 'emitter\')

function Invoke($command, $executePath=$repoRoot)
{
Expand Down Expand Up @@ -28,7 +30,7 @@ function Get-TspCommand {
)
$command = "npx tsp compile $specFile"
$command += " --trace @typespec/http-client-csharp"
$command += " --emit @typespec/http-client-csharp"
$command += " --emit $emitterPath"
$configFile = Join-Path $generationDir "tspconfig.yaml"
if (Test-Path $configFile) {
$command += " --config=$configFile"
Expand Down

0 comments on commit 0b02283

Please sign in to comment.