forked from openclaw/wacli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
34 lines (34 loc) · 2.01 KB
/
Copy pathpackage.json
File metadata and controls
34 lines (34 loc) · 2.01 KB
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
{
"name": "wacli",
"private": true,
"packageManager": "pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956",
"scripts": {
"wacli": "bash -lc 'pnpm --silent build >/dev/null && exec ./dist/wacli \"$@\"' _",
"build": "mkdir -p dist && CGO_ENABLED=1 CGO_CFLAGS=\"${CGO_CFLAGS:+$CGO_CFLAGS }-Wno-error=missing-braces\" go build -tags sqlite_fts5 -o dist/wacli ./cmd/wacli",
"start": "pnpm --silent build && ./dist/wacli",
"test": "pnpm --silent test:go && pnpm --silent test:fts && pnpm --silent test:windows-lock && pnpm --silent test:cgo-required && pnpm --silent test:docs",
"test:go": "go test ./...",
"test:fts": "go test -tags sqlite_fts5 ./...",
"test:windows-lock": "bash -euc 'tmp=\"${TMPDIR:-/tmp}/wacli-lock-windows.test.exe\"; trap \"rm -f \\\"$tmp\\\"\" EXIT; GOOS=windows GOARCH=amd64 go test -c ./internal/lock -o \"$tmp\"'",
"test:cgo-required": "bash -c 'set +e; out=$(CGO_ENABLED=0 go build ./cmd/wacli 2>&1); status=$?; set -e; echo \"$out\" | grep -q wacli_requires_cgo_enabled_1_for_go_sqlite3; test $status -ne 0'",
"test:docs": "node --test scripts/*.test.mjs",
"test:release": "node --test scripts/release-workflow.test.mjs",
"test:e2e": "bash scripts/e2e-store-sqlc.sh",
"lint": "go vet ./...",
"govulncheck:source": "node scripts/govulncheck-stdlib.mjs source",
"govulncheck:binary": "node scripts/govulncheck-stdlib.mjs binary dist/wacli",
"format": "gofmt -w .",
"format:check": "bash -lc 'out=$(gofmt -l .); if [ -n \"$out\" ]; then echo \"$out\"; exit 1; fi'",
"generate:sqlc": "go tool github.com/sqlc-dev/sqlc/cmd/sqlc generate",
"docs:site": "node scripts/build-docs-site.mjs",
"check:changed": "pnpm run test",
"test:changed": "pnpm run test",
"crabbox:hydrate": "crabbox actions hydrate",
"crabbox:run": "crabbox run",
"crabbox:stop": "crabbox stop",
"crabbox:warmup": "crabbox warmup"
},
"engines": {
"node": ">=24"
}
}