forked from velut/query-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
45 lines (33 loc) · 968 Bytes
/
Justfile
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
name := `jq -r '.name' package.json`
version := `jq -r '.version' package.json`
format:
bun run format
lint:
bun run lint
check:
bun run check
test:
bun run test
build:
bun run build
attw:
bun run attw
api-extractor:
bunx api-extractor run --local --verbose
ci: format lint check test build attw
[private]
is-clean:
#!/usr/bin/env bash
if [[ -n $(git status --porcelain) ]]; then
echo "Repository is dirty, commit or stash changes and try again."
exit 1
fi
[confirm("Are you sure you want to publish new version of the package?")]
@publish NEW_VERSION: is-clean ci
echo "Updating {{ name }} from v{{ version }} to v{{ NEW_VERSION }}"
sed -i 's/"version": "{{ version }}"/"version": "{{ NEW_VERSION }}"/g' package.json jsr.json
git add package.json jsr.json
git commit -m "{{ NEW_VERSION }}"
git tag 'v{{ NEW_VERSION }}'
update-test-data:
REMOTE=true PERSIST=true bun run test