Skip to content

Commit

Permalink
namespace appropriate pantry variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jun 15, 2022
1 parent 785c9af commit b20a722
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ even (especially) *how the world works*.
 


# tea/cli 0.1.2
# tea/cli 0.2.0

tea/cli is a universal interpreter:

Expand Down
6 changes: 3 additions & 3 deletions src/hooks/usePantry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ export default function usePantry(): Response {
const platform = usePlatform()
const raw = validateString(validatePlainObject(yml.build).script)
return raw
.replace(/{{\s*arch\s*}}/g, platform.arch)
.replace(/{{\s*target\s*}}/g, platform.target)
.replace(/{{\s*hw.arch\s*}}/g, platform.arch)
.replace(/{{\s*hw.target\s*}}/g, platform.target)
.replace(/{{\s*prefix\s*}}/g, prefix.string)
.replace(/{{\s*version\s*}}/g, pkg.version.toString())
.replace(/{{\s*jobs\s*}}/g, navigator.hardwareConcurrency.toString()) //TODO remove, only available with ts build scripts
.replace(/{{\s*hw.concurrency\s*}}/g, navigator.hardwareConcurrency.toString()) //TODO remove, only available with ts build scripts
}

const update = async () => {
Expand Down

0 comments on commit b20a722

Please sign in to comment.