77 <a href =" https://discord.tea.xyz " >
88 <img src="https://img.shields.io/discord/906608167901876256?label=discord&color=1bcf6f&logo=discord&logoColor=fff" alt="Discord" />
99 </a >
10- <a href =' https://coveralls.io/github/teaxyz/cli ?branch=main ' >
10+ <a href =' https://coveralls.io/github/teaxyz/lib ?branch=main ' >
1111 <img src='https://coveralls.io/repos/github/teaxyz/lib/badge.svg?branch=main' alt='Coverage Status' />
1212 </a >
1313 <a href =" https://docs.tea.xyz " >
@@ -25,18 +25,19 @@ without you or your user needing to install [tea/cli]
2525## Importing libtea
2626
2727``` sh
28- $ npm i @teaxyz/lib
28+ $ npm i https://github.com/teaxyz/libx
29+ # ^^ we’ll publish to npm after we’ve worked out the rough edges
2930```
3031
31- Or with deno :
32+ Or with Deno :
3233
3334``` ts
3435import * as tea from " https://raw.github.com/teaxyz/lib/v0/mod.ts"
3536```
3637
3738## Usage
3839
39- To install python 3.10 into ` ~/.tea `
40+ To install Python 3.10 into ` ~/.tea `
4041
4142``` ts
4243import { prefab , semver , hooks } from " tea"
@@ -57,10 +58,10 @@ const { installed, pending } = await resolve(tree)
5758
5859for (const pkg of pending ) {
5960 const install = await install (pkg )
60- installed .push (install )
6161 // ^^ install packages that aren’t yet installed
6262 // ^^ takes a logger parameter so you can show progress to the user
6363 // ^^ you could do these in parallel to speed things up
64+ installed .push (install )
6465}
6566
6667const { map, flatten } = useShellEnv ()
@@ -79,8 +80,9 @@ import { hooks } from "tea"
7980const { useConfig } = hooks
8081
8182useConfig ({ prefix: " /my/installation/directory" })
83+ // ^^ must be done before any other libtea calls
8284
83- // now
85+ // now installs and env will use this prefix
8486```
8587
8688### Notes
0 commit comments