@npmcli/config 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/set-envs.js +1 -7
  2. package/package.json +1 -1
package/lib/set-envs.js CHANGED
@@ -53,13 +53,7 @@ const setEnvs = (config) => {
53
53
  list: [cliConf, envConf],
54
54
  } = config
55
55
 
56
- const { DESTDIR } = env
57
- if (platform !== 'win32' && DESTDIR && globalPrefix.indexOf(DESTDIR) === 0)
58
- env.PREFIX = globalPrefix.substr(DESTDIR.length)
59
- else
60
- env.PREFIX = globalPrefix
61
-
62
- env.INIT_CWD = env.INIT_CWD || process.cwd()
56
+ env.INIT_CWD = process.cwd()
63
57
 
64
58
  // if the key is the default value,
65
59
  // if the environ is NOT the default value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/config",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "files": [
5
5
  "lib"
6
6
  ],