]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Fix npmrc env var format
authorMatt Ickstadt <mattico8@gmail.com>
Sat, 6 May 2023 17:41:55 +0000 (12:41 -0500)
committerGitHub <noreply@github.com>
Sat, 6 May 2023 17:41:55 +0000 (12:41 -0500)
npmrc only supports interpolating env vars with braces like this.

https://docs.npmjs.com/cli/v8/configuring-npm/npmrc#files

programs/npm.json

index ecca1da8d8126a57708034de1d52b95095af8bf4..dc15fb67ed3b26f85d0f601ec60c1be692483e20 100644 (file)
@@ -1,7 +1,7 @@
 {
     "files": [
         {
 {
     "files": [
         {
-            "help": "You need to put the following into your npmrc:\n\n```\nprefix=$XDG_DATA_HOME/npm\ncache=$XDG_CACHE_HOME/npm\ninit-module=$XDG_CONFIG_HOME/npm/config/npm-init.js\ntmp=${XDG_RUNTIME_DIR}/npm\n```\n\n_Note: the `tmp` option has been removed in more recent versions of npm, including it will generate a warning._\n",
+            "help": "You need to put the following into your npmrc:\n\n```\nprefix=${XDG_DATA_HOME}/npm\ncache=${XDG_CACHE_HOME}/npm\ninit-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js\ntmp=${XDG_RUNTIME_DIR}/npm\n```\n\n_Note: the `tmp` option has been removed in more recent versions of npm, including it will generate a warning._\n",
             "movable": true,
             "path": "$HOME/.npm"
         },
             "movable": true,
             "path": "$HOME/.npm"
         },