forked from webauthn-open-source/fido2-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.jsonc
31 lines (24 loc) · 994 Bytes
/
deno.jsonc
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
{
"lint": {
"files": {
"include": ["lib/","test/"],
"exclude": ["dist/","test/dist/"]
}
},
/* Never run deno fmt, unless you want to change formatting of all files */
"fmt": {
"files": {
"include": ["lib/","test/"]
}
},
"importMap": "import_map.json",
"tasks": {
/* Run deno tests with `deno task test`, using default import map */
"test": "deno test --lock=deno-lock.json --ignore=test/dist test",
/* import_map.dist.json redirects ./lib -> ./dist, to make tests use dist/main.js instead of lib/main.js */
"test:dist": "deno test --lock=deno-lock.json --importmap=import_map.dist.json --ignore=test/dist test",
/* Run after changing dependencies */
"update-deps": "deno cache -r --lock=deno-lock.json --lock-write --importmap=import_map.json test/main.test.js lib/main.js",
"build": "deno task test && (mkdir dist; deno bundle --lock=deno-lock.json lib/main.js dist/main.js) && deno task test:dist"
}
}