-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 929 Bytes
/
Copy pathMakefile
File metadata and controls
49 lines (38 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
build:
tsc --project tsconfig.esm.json
docs:
pnpm build:docs
serve-docs:
python -m http.server -d ./docs
watch:
tsc --project tsconfig.esm.json -w
test:
vitest run
test-providers:
# Might want to also do ONLINE=1 when running this
PROVIDER=ethers vitest run
PROVIDER=web3 vitest run
PROVIDER=viem vitest run
PROVIDER=viem:transport vitest run
PROVIDER=viem:publicClient vitest run
clean:
rm -rf ./lib ./lib.*
publish: clean
pnpm i
pnpm run build:esm
pnpm run build:cjs
pnpm run build:types
pnpm pack
size-limit
@echo "Run: pnpm login; pnpm publish"
run-examples:
./examples/autoload.ts $(ADDRESS)
./examples/bytecode.ts $(ADDRESS)
./examples/dot.ts $(ADDRESS)
./examples/resolveproxy.ts $(ADDRESS)
./src/_generated-interfaces.ts: ./examples/index-interfaces.ts
# Has to be done in two steps because of circular import
$< > $@_
mv $@_ $@
generated: ./src/_generated-interfaces.ts
.PHONY: docs