node options will be in process.execArgv
Signed-off-by: Brian Phillips <28457+brianphillips@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': patch
|
||||
---
|
||||
|
||||
The --no-node-snapshot check needs to be done against process.execArgv instead of process.argv
|
||||
@@ -17,7 +17,7 @@
|
||||
export function isNoNodeSnapshotOptionProvided(): boolean {
|
||||
return (
|
||||
process.env.NODE_OPTIONS?.includes('--no-node-snapshot') ||
|
||||
process.argv.includes('--no-node-snapshot')
|
||||
process.execArgv.includes('--no-node-snapshot')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user