File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -282,14 +282,18 @@ const lazyZshRcPath = () =>
282
282
283
283
// Harden Node security.
284
284
// https://nodejs.org/en/learn/getting-started/security-best-practices
285
- const nodeHardenFlags : string [ ] = [
286
- '--disable-proto' ,
287
- 'delete' ,
288
- // TODO: We can try --frozen-intrinsics once
289
- // https://github.com/SBoudrias/Inquirer.js/pull/1683 is addressed.
290
- // '--frozen-intrinsics',
291
- '--no-deprecation'
292
- ]
285
+ const nodeHardenFlags : string [ ] =
286
+ // The '@rollup/plugin-replace' will replace "process.env[SOCKET_CLI_SENTRY_BUILD]".
287
+ process . env [ SOCKET_CLI_SENTRY_BUILD ]
288
+ ? [ ]
289
+ : [
290
+ '--disable-proto' ,
291
+ 'delete' ,
292
+ // TODO: We can try --frozen-intrinsics once
293
+ // https://github.com/SBoudrias/Inquirer.js/pull/1683 is addressed.
294
+ // '--frozen-intrinsics',
295
+ '--no-deprecation'
296
+ ]
293
297
294
298
const constants = createConstantsObject (
295
299
{
You can’t perform that action at this time.
0 commit comments