@@ -248,25 +248,17 @@ const lazyNmBinPath = () =>
248248 // Lazily access constants.rootPath.
249249 path . join ( constants . rootPath , `${ NODE_MODULES } /.bin` )
250250
251+ // Harden Node security.
252+ // https://nodejs.org/en/learn/getting-started/security-best-practices
251253const lazyNodeHardenFlags = ( ) =>
252254 // The '@rollup/plugin-replace' will replace "process.env[INLINED_SOCKET_CLI_SENTRY_BUILD]".
253255 process . env [ INLINED_SOCKET_CLI_SENTRY_BUILD ]
254256 ? [ ]
255- : // Harden Node security.
256- // https://nodejs.org/en/learn/getting-started/security-best-practices
257- [
258- '--disable-proto' ,
259- 'delete' ,
260- // Lazily access constants.WIN32.
261- constants . WIN32
262- ? // We have contributed the following patches to our dependencies to make
263- // Node's --frozen-intrinsics workable.
264- // √ https://github.com/SBoudrias/Inquirer.js/pull/1683
265- // √ https://github.com/pnpm/components/pull/23
266- [ '--frozen-intrinsics' ]
267- : [ ] ,
268- '--no-deprecation'
269- ]
257+ : // We have contributed the following patches to our dependencies to make
258+ // Node's --frozen-intrinsics workable.
259+ // √ https://github.com/SBoudrias/Inquirer.js/pull/1683
260+ // √ https://github.com/pnpm/components/pull/23
261+ [ '--disable-proto' , 'delete' , '--frozen-intrinsics' , '--no-deprecation' ]
270262
271263const lazyRootBinPath = ( ) =>
272264 // Lazily access constants.rootPath.
0 commit comments