File: drop-env-paths.patch

package info (click to toggle)
node-gyp 9.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,548 kB
  • sloc: python: 22,325; javascript: 4,147; lisp: 258; cs: 186; cpp: 28; sh: 23; makefile: 7
file content (23 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: drop unavailable env-paths module, easy to patch out
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2019-10-21
Forwarded: not-needed
--- a/bin/node-gyp.js
+++ b/bin/node-gyp.js
@@ -4,7 +4,6 @@
 
 process.title = 'node-gyp'
 
-const envPaths = require('env-paths')
 const gyp = require('../')
 const log = require('npmlog')
 const os = require('os')
@@ -22,7 +21,7 @@
 if (prog.devDir) {
   prog.devDir = prog.devDir.replace(/^~/, homeDir)
 } else if (homeDir) {
-  prog.devDir = envPaths('node-gyp', { suffix: '' }).cache
+  prog.devDir = homeDir + '/.cache/node-gyp'
 } else {
   throw new Error(
     "node-gyp requires that the user's home directory is specified " +