palabra 2.2.0 → 2.3.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/letras/haskell/haskell.json +5 -2
- package/letras/mwget/mwget.json +7 -9
- package/letras/yara/yara.json +1 -4
- package/lib/parser/parser.js +6 -0
- package/lib/parser/rename.js +15 -0
- package/package.json +1 -1
package/ChangeLog
CHANGED
|
@@ -20,5 +20,8 @@
|
|
|
20
20
|
"ghc --version",
|
|
21
21
|
"stack --version"
|
|
22
22
|
],
|
|
23
|
-
"commands": [
|
|
24
|
-
}
|
|
23
|
+
"commands": [
|
|
24
|
+
"mv ~/.ghcup {{ directorio }}/ghcup",
|
|
25
|
+
"ln -fs {{ directorio }}/ghcup/ghc/{{ version }}/lib/ghc-{{ version }}/bin/ghc {{ directorio }}/../bin/ghc"
|
|
26
|
+
]
|
|
27
|
+
}
|
package/letras/mwget/mwget.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
]
|
|
10
|
-
}
|
|
2
|
+
"name": "mwget",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"url": "https://github.com/rayylee/mwget/releases/download/v{{ version }}/mwget-linux-x64.tar.gz",
|
|
5
|
+
"test": "{{ name }} --version",
|
|
6
|
+
"bin": "{{ name }}",
|
|
7
|
+
"rename": "{{ name }}-linux-x64"
|
|
8
|
+
}
|
package/letras/yara/yara.json
CHANGED
package/lib/parser/parser.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {join} from 'node:path';
|
|
2
2
|
import {rendy} from 'rendy';
|
|
3
|
+
import {rename} from './rename.js';
|
|
3
4
|
import {extract, isArchive} from './extract.js';
|
|
4
5
|
import {execute, isExecute} from './execute.js';
|
|
5
6
|
import {parseEnv} from './parse-env.js';
|
|
@@ -63,6 +64,9 @@ export const parse = (letra) => {
|
|
|
63
64
|
bin,
|
|
64
65
|
}));
|
|
65
66
|
|
|
67
|
+
if (letra.rename)
|
|
68
|
+
commands.push(...rename(letra));
|
|
69
|
+
|
|
66
70
|
if (letra.commands)
|
|
67
71
|
commands.push(...run({
|
|
68
72
|
letra,
|
|
@@ -99,7 +103,9 @@ function createSymlinks(letra) {
|
|
|
99
103
|
hogar,
|
|
100
104
|
bin,
|
|
101
105
|
} = letra;
|
|
106
|
+
|
|
102
107
|
const commands = [];
|
|
108
|
+
|
|
103
109
|
const parsedBin = parseBin({
|
|
104
110
|
name,
|
|
105
111
|
hogar,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {join} from 'node:path';
|
|
2
|
+
import {rendy} from 'rendy';
|
|
3
|
+
|
|
4
|
+
export const rename = (letra) => {
|
|
5
|
+
const {name, directorio} = letra;
|
|
6
|
+
const commands = [];
|
|
7
|
+
const renderedRename = rendy(letra.rename, letra);
|
|
8
|
+
const from = join(directorio, renderedRename);
|
|
9
|
+
const to = join(directorio, name);
|
|
10
|
+
|
|
11
|
+
commands.push(`mv -f ${from} ${to}`);
|
|
12
|
+
|
|
13
|
+
return commands;
|
|
14
|
+
};
|
|
15
|
+
|