|
| 1 | +import { BuildOptions } from "https://deno.land/x/[email protected]/mod.ts"; |
| 2 | + |
| 3 | +export const makeOptions = (version: string): BuildOptions => ({ |
| 4 | + test: false, |
| 5 | + shims: {}, |
| 6 | + compilerOptions: { |
| 7 | + lib: [ |
| 8 | + "esnext", |
| 9 | + "dom", |
| 10 | + "dom.iterable", |
| 11 | + ], |
| 12 | + }, |
| 13 | + typeCheck: false, |
| 14 | + entryPoints: ["./mod.ts"], |
| 15 | + outDir: "./npm", |
| 16 | + package: { |
| 17 | + name: "@httpland/conditional-request-middleware", |
| 18 | + version, |
| 19 | + description: "HTTP conditional request middleware", |
| 20 | + keywords: [ |
| 21 | + "http", |
| 22 | + "conditional-request", |
| 23 | + "conditional", |
| 24 | + "middleware", |
| 25 | + "etag", |
| 26 | + "last-modified", |
| 27 | + "range", |
| 28 | + "if-match", |
| 29 | + "if-none-match", |
| 30 | + "if-modified-since", |
| 31 | + "if-unmodified-since", |
| 32 | + "if-range", |
| 33 | + ], |
| 34 | + license: "MIT", |
| 35 | + homepage: "https://github.com/httpland/conditional-request-middleware", |
| 36 | + repository: { |
| 37 | + type: "git", |
| 38 | + url: "git+https://github.com/httpland/conditional-request-middleware.git", |
| 39 | + }, |
| 40 | + bugs: { |
| 41 | + url: "https://github.com/httpland/conditional-request-middleware/issues", |
| 42 | + }, |
| 43 | + sideEffects: false, |
| 44 | + type: "module", |
| 45 | + publishConfig: { |
| 46 | + access: "public", |
| 47 | + }, |
| 48 | + }, |
| 49 | + packageManager: "pnpm", |
| 50 | + mappings: { |
| 51 | + "https://deno.land/x/[email protected]/mod.ts": { |
| 52 | + name: "isxx", |
| 53 | + version: "1.0.0-beta.24", |
| 54 | + }, |
| 55 | + "https://deno.land/x/[email protected]/mod.ts": { |
| 56 | + name: "@httpland/http-middleware", |
| 57 | + version: "1.0.0", |
| 58 | + }, |
| 59 | + "https://deno.land/x/[email protected]/header.ts": { |
| 60 | + name: "@httpland/http-utils", |
| 61 | + version: "1.0.0-beta.14", |
| 62 | + }, |
| 63 | + "https://deno.land/x/[email protected]/method.ts": { |
| 64 | + name: "@httpland/http-utils", |
| 65 | + version: "1.0.0-beta.14", |
| 66 | + }, |
| 67 | + "https://deno.land/x/[email protected]/mod.ts": { |
| 68 | + name: "@httpland/etag-parser", |
| 69 | + version: "1.0.0", |
| 70 | + }, |
| 71 | + "https://deno.land/x/[email protected]/mod.ts": { |
| 72 | + name: "@miyauci/result", |
| 73 | + version: "1.0.0", |
| 74 | + }, |
| 75 | + "https://deno.land/x/[email protected]/mod.ts": { |
| 76 | + name: "@httpland/range-request-middleware", |
| 77 | + version: "1.0.0-beta.1", |
| 78 | + }, |
| 79 | + }, |
| 80 | +}); |
0 commit comments