-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
deno.json
68 lines (68 loc) · 3.31 KB
/
deno.json
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"workspace": [
"ansi",
"command",
"flags",
"internal",
"keycode",
"keypress",
"prompt",
"table",
"testing"
],
"lock": false,
"exclude": ["dist"],
"tasks": {
"lint": "deno lint && deno fmt --check",
"fmt": "deno fmt",
"node": "pnpm tsx",
"bun": "bun run",
"test": "deno task test:deno",
"test:all": "deno task clean && deno task test:deno && deno task setup:node && deno task test:node && deno task clean",
"test:deno": "deno task test:deno-v2",
"test:deno-v1": "deno task test:deno-v2 --doc --ignore=./CHANGELOG.md",
"test:deno-v2": "deno test --allow-run=deno --allow-env --allow-read --allow-write=./ --parallel",
"test:node": "pnpm tsx --test '!(testing|node_modules)/**/*test.ts'",
"test:bun": "bun test",
"coverage:deno": "deno task coverage:deno-v2",
"coverage:deno-v1": "deno task test:deno-v1 --coverage=./dist/coverage/deno/result $COVERAGE_FILES && deno coverage --lcov ./dist/coverage/deno/result > ./dist/coverage/deno/cov.lcov",
"coverage:deno-v2": "deno task test:deno-v2 --coverage=./dist/coverage/deno/result $COVERAGE_FILES && deno coverage --lcov ./dist/coverage/deno/result > ./dist/coverage/deno/cov.lcov",
"coverage:node": "mkdir -p dist/coverage/node && pnpm tsx --test --experimental-test-coverage --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=./dist/coverage/node/cov.lcov '!(testing|node_modules)/**/*test.ts'",
"coverage:bun": "deno task test:bun --coverage --coverage-reporter=lcov --coverage-dir=./dist/coverage",
"snapshot": "deno task test -- --update",
"check": "deno task check:deno-v2",
"check:deno-v1": "deno check .",
"check:deno-v2": "deno check --doc .",
"setup:deno": "echo nothing todo",
"setup:node": "deno run -A ./tasks/setup_node.ts",
"setup:bun": "deno run -A ./tasks/setup_node.ts --bun",
"clean": "rm -rf dist node_modules .npmrc bun.lockb package.json pnpm-lock.yaml tsconfig.json",
"update": "deno run --allow-read=./ --allow-net --allow-write=./ https://deno.land/x/[email protected]/cli.ts --ignore README.md CHANGELOG.md CONTRIBUTING.md"
},
"imports": {
"@c4spar/mock-command": "jsr:@c4spar/mock-command@^1.0.1",
"@c4spar/mock-fetch": "jsr:@c4spar/mock-fetch@^1.0.0",
"@cliffy/ansi": "jsr:@cliffy/[email protected]",
"@cliffy/command": "jsr:@cliffy/[email protected]",
"@cliffy/flags": "jsr:@cliffy/[email protected]",
"@cliffy/internal": "jsr:@cliffy/[email protected]",
"@cliffy/keycode": "jsr:@cliffy/[email protected]",
"@cliffy/keypress": "jsr:@cliffy/[email protected]",
"@cliffy/prompt": "jsr:@cliffy/[email protected]",
"@cliffy/table": "jsr:@cliffy/[email protected]",
"@cliffy/testing": "jsr:@cliffy/[email protected]",
"@std/assert": "jsr:@std/assert@~1.0.6",
"@std/async": "jsr:@std/async@~1.0.5",
"@std/cli": "jsr:@std/cli@~1.0.6",
"@std/datetime": "jsr:@std/datetime@~0.225.2",
"@std/encoding": "jsr:@std/encoding@~1.0.5",
"@std/fmt": "jsr:@std/fmt@~1.0.2",
"@std/fs": "jsr:@std/fs@~1.0.4",
"@std/http": "jsr:@std/http@~1.0.7",
"@std/io": "jsr:@std/io@~0.224.9",
"@std/path": "jsr:@std/path@~1.0.6",
"@std/testing": "jsr:@std/[email protected]",
"@std/text": "jsr:@std/text@~1.0.7",
"sinon": "npm:[email protected]"
}
}