We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1308d16 commit a2722bfCopy full SHA for a2722bf
src/hooks/useMoustaches.ts
@@ -25,17 +25,6 @@ function tokenizeVersion(version: SemVer, prefix = 'version') {
25
return rv
26
}
27
28
-//TODO replace `hw` with `host`
29
-function tokenizeHost() {
30
- const { arch, target, platform } = host()
31
- return [
32
- { from: "hw.arch", to: arch },
33
- { from: "hw.target", to: target },
34
- { from: "hw.platform", to: platform },
35
- { from: "hw.concurrency", to: os.cpus().length.toString() }
36
- ]
37
-}
38
-
39
function apply(input: string, map: { from: string, to: string }[]) {
40
return map.reduce((acc, {from, to}) =>
41
acc.replace(new RegExp(`(^\\$)?{{\\s*${from}\\s*}}`, "g"), to),
@@ -48,7 +37,6 @@ export default function() {
48
apply,
49
tokenize: {
50
version: tokenizeVersion,
51
- host: tokenizeHost,
52
pkg: tokenizePackage
53
54
42
@@ -69,7 +57,6 @@ export default function() {
69
57
...tokenizePackage(pkg),
70
58
...pkgx(),
71
59
...base.tokenize.version(pkg.version),
72
- ...base.tokenize.host(),
73
60
]
74
61
75
62
return {
0 commit comments