|
9 | 9 | }, |
10 | 10 | "main": "./dist/index.cjs", |
11 | 11 | "module": "./dist/index.js", |
12 | | - "types": "./dist/src/index.d.ts", |
| 12 | + "types": "./dist/index.d.ts", |
13 | 13 | "exports": { |
14 | 14 | ".": { |
15 | | - "types": "./dist/src/index.d.ts", |
16 | 15 | "require": "./dist/index.cjs", |
17 | 16 | "import": "./dist/index.js" |
18 | 17 | } |
|
24 | 23 | "format": "prettier --write .", |
25 | 24 | "format:check": "prettier --check .", |
26 | 25 | "prepublishOnly": "pnpm run inference-codegen && git diff --name-only --exit-code src && pnpm run build", |
27 | | - "build": "tsup src/index.ts --format cjs,esm --clean && tsc --emitDeclarationOnly --declaration", |
| 26 | + "build": "tsup src/index.ts --format cjs,esm --clean && tsc --emitDeclarationOnly --declaration && pnpm run generate-cts", |
28 | 27 | "watch:export": "tsup src/index.ts --format cjs,esm --watch", |
29 | 28 | "watch:types": "tsc --emitDeclarationOnly --declaration --watch", |
30 | 29 | "watch": "npm-run-all --parallel watch:export watch:types", |
31 | 30 | "prepare": "pnpm run build", |
32 | 31 | "check": "tsc", |
33 | 32 | "test": "vitest run", |
| 33 | + "generate-cts": "tsx scripts/generate-cts.ts", |
34 | 34 | "inference-codegen": "tsx scripts/inference-codegen.ts && prettier --write src/tasks/*/inference.ts", |
35 | 35 | "inference-tgi-import": "tsx scripts/inference-tgi-import.ts && prettier --write src/tasks/text-generation/spec/*.json && prettier --write src/tasks/chat-completion/spec/*.json", |
36 | 36 | "inference-tei-import": "tsx scripts/inference-tei-import.ts && prettier --write src/tasks/feature-extraction/spec/*.json" |
|
0 commit comments