|
1 | 1 | { |
| 2 | + "name": "@pkgx/libpkgx", |
| 3 | + "version": "0.23.0", |
| 4 | + "license": "Apache-2.0", |
| 5 | + "exports": { |
| 6 | + ".": "./mod.ts", |
| 7 | + "./hooks/useConfig.ts": "./src/hooks/useConfig.ts", |
| 8 | + "./hooks/usePantry.ts": "./src/hooks/usePantry.ts", |
| 9 | + "./utils/error.ts": "./src/utils/error.ts", |
| 10 | + "./utils/host.ts": "./src/utils/host.ts", |
| 11 | + "./utils/read-lines.ts": "./src/utils/read-lines.ts", |
| 12 | + "./utils/semver.ts": "./src/utils/semver.ts", |
| 13 | + "./plumbing/hydrate.ts": "./src/plumbing/hydrate.ts" |
| 14 | + }, |
| 15 | + "publish": { |
| 16 | + "include": [ |
| 17 | + "LICENSE.txt", |
| 18 | + "README.md", |
| 19 | + "mod.ts", |
| 20 | + "src/**/*.ts", |
| 21 | + "vendor/**" |
| 22 | + ], |
| 23 | + "exclude": [ |
| 24 | + "src/**/*.test.ts", |
| 25 | + "src/hooks/useTestConfig.ts", |
| 26 | + "fixtures", |
| 27 | + "examples", |
| 28 | + "scripts", |
| 29 | + "dist", |
| 30 | + ".github" |
| 31 | + ] |
| 32 | + }, |
2 | 33 | "compilerOptions": { |
3 | | - "allowJs": false, |
4 | 34 | "strict": true |
5 | 35 | }, |
6 | 36 | "pkgx": "deno~2.0", |
7 | 37 | "tasks": { |
8 | 38 | "test": "deno test --parallel --unstable-fs --unstable-ffi --allow-all", |
9 | | - "typecheck": "deno check ./mod.ts" |
| 39 | + "typecheck": "deno check ./mod.ts", |
| 40 | + "publish:dry": "deno publish --dry-run --allow-slow-types --no-check --allow-dirty --unstable-fs --unstable-ffi" |
10 | 41 | }, |
11 | 42 | "lint": { |
12 | | - "include": ["src/"], |
13 | | - "exclude": ["**/*.test.ts"] |
| 43 | + "include": ["src/", "mod.ts"], |
| 44 | + "exclude": ["**/*.test.ts", "vendor/", "src/hooks/useTestConfig.ts"], |
| 45 | + "rules": { |
| 46 | + // Prototype extensions (Array.compact, Promise.swallow, etc.) use |
| 47 | + // `declare global`, which JSR forbids without --allow-slow-types. |
| 48 | + // Explicit public return types are fixed; globals are a larger refactor. |
| 49 | + "exclude": ["no-slow-types"] |
| 50 | + } |
14 | 51 | }, |
15 | 52 | "test": { |
16 | 53 | "include": ["src/"], |
17 | 54 | "exclude": ["dist/"] |
18 | 55 | }, |
19 | 56 | "imports": { |
20 | 57 | "@std/assert": "jsr:@std/assert@^1.0.6", |
| 58 | + "@std/crypto": "jsr:@std/crypto@^1", |
| 59 | + "@std/encoding": "jsr:@std/encoding@^1", |
| 60 | + "@std/fs": "jsr:@std/fs@^1", |
| 61 | + "@std/io": "jsr:@std/io@^0.225.0", |
| 62 | + "@std/io/write-all": "jsr:@std/io@^0.225.0/write-all", |
| 63 | + "@std/path": "jsr:@std/path@^1", |
21 | 64 | "@std/testing": "jsr:@std/testing@^1.0.3", |
22 | | - "is-what": "https://deno.land/x/is_what@v4.1.15/src/index.ts", |
23 | | - "outdent": "https://deno.land/x/outdent@v0.8.0/mod.ts" |
| 65 | + "@std/yaml": "jsr:@std/yaml@^1", |
| 66 | + "is-what": "npm:is-what@4.1.15", |
| 67 | + "outdent": "npm:outdent@0.8.0" |
24 | 68 | } |
25 | 69 | } |
0 commit comments