Skip to content

Commit f6c974c

Browse files
committed
Set node memory in generation script.
1 parent 1fbcea9 commit f6c974c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/GenerateModules.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ if (!(Get-Module -Name powershell-yaml -ListAvailable)) {
3333
Install-Module powershell-yaml -Force
3434
}
3535

36+
# Set NODE max memory to 8 Gb.
37+
$ENV:NODE_OPTIONS='--max-old-space-size=8192'
3638
$ModulePrefix = "Microsoft.Graph"
3739
$ScriptRoot = $PSScriptRoot
3840
$ModulesOutputDir = Join-Path $ScriptRoot "..\src\"

0 commit comments

Comments
 (0)