|
2 | 2 | "lock": false, |
3 | 3 | "tasks": { |
4 | 4 | "fedify-codegen": "cat ../../vocab/vocab.ts > /dev/null || (deno run --allow-read --allow-write --check ../../codegen/main.ts ../../vocab/ ../runtime/ > ../../vocab/vocab.ts && deno fmt ../../vocab/vocab.ts && deno cache ../../vocab/vocab.ts && deno check ../../vocab/vocab.ts)", |
5 | | - "check": "deno task fedify-codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", |
6 | | - "cli": "deno task fedify-codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", |
7 | | - "manifest": "deno task fedify-codegen && deno task cli manifest $(pwd)", |
8 | | - "start": "deno task fedify-codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts", |
9 | | - "build": "deno task fedify-codegen && deno run -A dev.ts build", |
10 | | - "preview": "deno task fedify-codegen && deno run -A main.ts", |
| 5 | + "generate-import-map": "deno run --allow-read --allow-write generate_import_map.ts", |
| 6 | + "codegen": "deno task fedify-codegen && deno task generate-import-map", |
| 7 | + "check": "deno task codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", |
| 8 | + "cli": "deno task codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", |
| 9 | + "manifest": "deno task codegen && deno task cli manifest $(pwd)", |
| 10 | + "start": "deno task codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts", |
| 11 | + "build": "deno task codegen && deno run -A dev.ts build", |
| 12 | + "preview": "deno task codegen && deno run -A main.ts", |
11 | 13 | "update": "deno run -A -r https://fresh.deno.dev/update ." |
12 | 14 | }, |
13 | 15 | "lint": { |
|
21 | 23 | "exclude": [ |
22 | 24 | "**/_fresh/*" |
23 | 25 | ], |
24 | | - "imports": { |
25 | | - "$fresh/": "https://deno.land/x/fresh@1.6.5/", |
26 | | - "preact": "https://esm.sh/preact@10.19.2", |
27 | | - "preact/": "https://esm.sh/preact@10.19.2/", |
28 | | - "@preact/signals": "https://esm.sh/*@preact/signals@1.2.1", |
29 | | - "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0", |
30 | | - "$std/": "https://deno.land/std@0.217.0/", |
31 | | - "fedify": "../../mod.ts", |
32 | | - "fedify/federation": "../../federation/mod.ts", |
33 | | - "fedify/httpsig": "../../httpsig/mod.ts", |
34 | | - "fedify/runtime": "../../runtime/mod.ts", |
35 | | - "fedify/vocab": "../../vocab/mod.ts", |
36 | | - "fedify/webfinger": "../../webfinger/mod.ts", |
37 | | - "uuidv7": "npm:uuidv7@0.6.3", |
38 | | - "markdown-it": "npm:markdown-it@14.0.0", |
39 | | - "scrypt": "https://deno.land/x/scrypt@v4.3.1/mod.ts" |
40 | | - }, |
| 26 | + "importMap": "./import_map.g.json", |
41 | 27 | "compilerOptions": { |
42 | 28 | "jsx": "react-jsx", |
43 | 29 | "jsxImportSource": "preact" |
|
0 commit comments