You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This formalizes the `node-gyp` config that is eventually consumed by [@npmcli/run-script](npm.im/@npmcli/run-script).
That module will need to be updated so that it can accept this config and use it if found, only falling back to its current behavior by default.
Copy file name to clipboardexpand all lines: workspaces/config/lib/index.js
+3-4
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,11 @@ const {
15
15
mkdir,
16
16
}=require('node:fs/promises')
17
17
18
-
// TODO these need to be either be ignored when parsing env, formalized as config, or not exported to the env in the first place. For now this list is just to suppress warnings till we can pay off this tech debt.
18
+
// TODO global-prefix and local-prefix are set by lib/set-envs.js. This may not be the best way to persist those, if we even want to persist them (see set-envs.js)
19
19
constinternalEnv=[
20
+
'npm-version',
20
21
'global-prefix',
21
22
'local-prefix',
22
-
'npm-version',
23
-
'node-gyp',
24
23
]
25
24
26
25
constfileExists=(...p)=>stat(resolve(...p))
@@ -282,7 +281,7 @@ class Config {
282
281
}
283
282
284
283
try{
285
-
// This does not have an actual definition
284
+
// This does not have an actual definition because this is not user defineable
0 commit comments