|
1 | 1 | { |
2 | | - "name": "@cosense/std", |
3 | | - "version": "0.0.0", |
4 | | - "tasks": { |
5 | | - "fix": { |
6 | | - "command": "deno fmt && deno lint --fix && deno publish --dry-run --allow-dirty", |
7 | | - "dependencies": [ |
8 | | - "type-check", |
9 | | - "test" |
10 | | - ] |
11 | | - }, |
12 | | - "check": { |
13 | | - "command": "deno fmt --check && deno lint && deno publish --dry-run", |
14 | | - "dependencies": [ |
15 | | - "type-check", |
16 | | - "test" |
17 | | - ] |
18 | | - }, |
19 | | - "type-check": "deno check --remote **/*.ts", |
20 | | - "test": "deno test --allow-read=./ --doc --parallel --shuffle --no-check", |
21 | | - "coverage": "deno test --allow-read=./ --parallel --shuffle --coverage --no-check && deno coverage --html", |
22 | | - "doc": "deno doc --html mod.ts", |
23 | | - // from https://github.com/jsr-core/unknownutil/blob/v4.2.2/deno.jsonc#L84-L85 |
24 | | - "update": "deno outdated --update", |
25 | | - "update:commit": "deno task -q update --commit --prefix deps: --pre-commit=fix" |
| 2 | + "compilerOptions": { |
| 3 | + "lib": [ |
| 4 | + "esnext", |
| 5 | + "dom", |
| 6 | + "dom.iterable", |
| 7 | + "deno.ns" |
| 8 | + ] |
| 9 | + }, |
| 10 | + "exclude": [ |
| 11 | + "coverage/", |
| 12 | + "docs/" |
| 13 | + ], |
| 14 | + "exports": { |
| 15 | + ".": "./mod.ts", |
| 16 | + "./browser": "./browser/mod.ts", |
| 17 | + "./browser/dom": "./browser/dom/mod.ts", |
| 18 | + "./browser/websocket": "./websocket/mod.ts", |
| 19 | + "./parseAbsoluteLink": "./parseAbsoluteLink.ts", |
| 20 | + "./rest": "./rest/mod.ts", |
| 21 | + "./text": "./text.ts", |
| 22 | + "./title": "./title.ts", |
| 23 | + "./websocket": "./websocket/mod.ts" |
26 | 24 | }, |
27 | 25 | "imports": { |
28 | | - "@cosense/std/rest": "./rest/mod.ts", |
29 | | - "@cosense/std/browser/websocket": "./browser/websocket/mod.ts", |
30 | 26 | "@core/unknownutil": "jsr:@core/unknownutil@^4.0.0", |
| 27 | + "@cosense/std/browser/websocket": "./websocket/mod.ts", |
| 28 | + "@cosense/std/rest": "./rest/mod.ts", |
| 29 | + "@cosense/std/websocket": "./websocket/mod.ts", |
31 | 30 | "@cosense/types": "jsr:@cosense/types@^0.10.4", |
32 | 31 | "@cosense/types/rest": "jsr:@cosense/types@0.10/rest", |
33 | 32 | "@cosense/types/userscript": "jsr:@cosense/types@0.10/userscript", |
|
42 | 41 | "option-t": "npm:option-t@^51.0.0", |
43 | 42 | "socket.io-client": "npm:socket.io-client@^4.7.5" |
44 | 43 | }, |
45 | | - "exports": { |
46 | | - ".": "./mod.ts", |
47 | | - "./rest": "./rest/mod.ts", |
48 | | - "./browser": "./browser/mod.ts", |
49 | | - "./browser/dom": "./browser/dom/mod.ts", |
50 | | - "./browser/websocket": "./browser/websocket/mod.ts", |
51 | | - "./parseAbsoluteLink": "./parseAbsoluteLink.ts", |
52 | | - "./title": "./title.ts", |
53 | | - "./text": "./text.ts" |
54 | | - }, |
55 | | - "compilerOptions": { |
56 | | - "lib": [ |
57 | | - "esnext", |
58 | | - "dom", |
59 | | - "dom.iterable", |
60 | | - "deno.ns" |
61 | | - ] |
62 | | - }, |
63 | | - "exclude": [ |
64 | | - "coverage/", |
65 | | - "docs/" |
66 | | - ], |
67 | 44 | "lint": { |
68 | 45 | "exclude": [ |
69 | 46 | "vendor/" |
70 | 47 | ] |
71 | 48 | }, |
| 49 | + "name": "@cosense/std", |
| 50 | + "tasks": { |
| 51 | + "check": { |
| 52 | + "command": "deno fmt --check && deno lint && deno publish --dry-run", |
| 53 | + "dependencies": [ |
| 54 | + "type-check", |
| 55 | + "test" |
| 56 | + ] |
| 57 | + }, |
| 58 | + "coverage": "deno test --allow-read=./ --parallel --shuffle --coverage --no-check && deno coverage --html", |
| 59 | + "doc": "deno doc --html mod.ts", |
| 60 | + "fix": { |
| 61 | + "command": "deno fmt && deno lint --fix && deno publish --dry-run --allow-dirty", |
| 62 | + "dependencies": [ |
| 63 | + "type-check", |
| 64 | + "test" |
| 65 | + ] |
| 66 | + }, |
| 67 | + "test": "deno test --allow-read=./ --doc --parallel --shuffle --no-check", |
| 68 | + "type-check": "deno check --remote **/*.ts", |
| 69 | + // from https://github.com/jsr-core/unknownutil/blob/v4.2.2/deno.jsonc#L84-L85 |
| 70 | + "update": "deno outdated --update", |
| 71 | + "update:commit": "deno task -q update --commit --prefix deps: --pre-commit=fix" |
| 72 | + }, |
72 | 73 | "test": { |
73 | 74 | "exclude": [ |
74 | 75 | "README.md", |
75 | | - "./browser/websocket/listen.ts", |
76 | | - "./browser/websocket/updateCodeFile.ts", |
| 76 | + "./websocket/listen.ts", |
| 77 | + "./websocket/updateCodeFile.ts", |
77 | 78 | "./rest/getCachedAt.ts", |
78 | 79 | "./rest/getCodeBlocks.ts", |
79 | 80 | "./rest/getGyazoToken.ts", |
80 | 81 | "./rest/getTweetInfo.ts", |
81 | 82 | "./rest/getWebPageTitle.ts", |
82 | 83 | "./rest/link.ts" |
83 | 84 | ] |
84 | | - } |
| 85 | + }, |
| 86 | + "version": "0.0.0" |
85 | 87 | } |
0 commit comments