palabra 1.23.12 → 2.0.0
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.
- package/ChangeLog +5 -0
- package/README.md +1 -1
- package/letras/haskell/haskell.json +1 -4
- package/lib/cli/parse-args.js +13 -1
- package/lib/parser/parser.js +1 -1
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -20,8 +20,5 @@
|
|
|
20
20
|
"ghc --version",
|
|
21
21
|
"stack --version"
|
|
22
22
|
],
|
|
23
|
-
"commands": [
|
|
24
|
-
"mv ~/.ghcup {{ directorio }}/ghcup",
|
|
25
|
-
"ln -fs {{ directorio }}/ghcup/ghc/{{ version }}/lib/ghc-{{ version }}/bin/ghc {{ directorio }}/../bin/ghc"
|
|
26
|
-
]
|
|
23
|
+
"commands": ["mv ~/.ghcup {{ directorio }}/ghcup", "ln -fs {{ directorio }}/ghcup/ghc/{{ version }}/lib/ghc-{{ version }}/bin/ghc {{ directorio }}/../bin/ghc"]
|
|
27
24
|
}
|
package/lib/cli/parse-args.js
CHANGED
|
@@ -11,7 +11,7 @@ export const parseArgs = (args) => {
|
|
|
11
11
|
},
|
|
12
12
|
string: ['directorio'],
|
|
13
13
|
default: {
|
|
14
|
-
directorio: process.env
|
|
14
|
+
directorio: getDirectorio(process.env),
|
|
15
15
|
},
|
|
16
16
|
boolean: [
|
|
17
17
|
'quiet',
|
|
@@ -21,3 +21,15 @@ export const parseArgs = (args) => {
|
|
|
21
21
|
],
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
+
|
|
25
|
+
function getDirectorio(env) {
|
|
26
|
+
const {PALABRA_DIR, XDG_DATA_HOME} = env;
|
|
27
|
+
|
|
28
|
+
if (PALABRA_DIR)
|
|
29
|
+
return PALABRA_DIR;
|
|
30
|
+
|
|
31
|
+
if (XDG_DATA_HOME)
|
|
32
|
+
return XDG_DATA_HOME;
|
|
33
|
+
|
|
34
|
+
return '~/.local/share';
|
|
35
|
+
}
|
package/lib/parser/parser.js
CHANGED