summaryrefslogtreecommitdiff
path: root/npm/destdir.patch
blob: 133d3da7058b94beb3445f8404867115d26a85e0 (plain)
    1 diff -Naur cli-7.4.3.orig/node_modules/@npmcli/config/lib/index.js cli-7.4.3/node_modules/@npmcli/config/lib/index.js
    2 --- cli-7.4.3.orig/node_modules/@npmcli/config/lib/index.js	2021-01-26 00:33:07.581392623 +0100
    3 +++ cli-7.4.3/node_modules/@npmcli/config/lib/index.js	2021-01-26 00:34:40.643350386 +0100
    4 @@ -296,6 +296,9 @@
    5  
    6      if (this.env.PREFIX) {
    7        this.globalPrefix = this.env.PREFIX
    8 +      if (this.env.DESTDIR) {
    9 +        this.globalPrefix = join(this.env.DESTDIR, this.globalPrefix)
   10 +      }
   11      } else if (this.platform === 'win32') {
   12      // c:\node\node.exe --> prefix=c:\node\
   13        this.globalPrefix = dirname(this.execPath)

Generated by cgit