|
5 | 5 | "type": "module", |
6 | 6 | "main": "./dist/index.js", |
7 | 7 | "module": "./dist/index.js", |
8 | | - "types": "./dist/index.d.ts", |
| 8 | + "types": "./dist/types/index.d.ts", |
9 | 9 | "sideEffects": false, |
10 | 10 | "exports": { |
11 | 11 | ".": { |
12 | | - "import": "./dist/index.js", |
13 | | - "types": "./dist/index.d.ts" |
| 12 | + "types": "./dist/types/index.d.ts", |
| 13 | + "import": "./dist/index.js" |
14 | 14 | } |
15 | 15 | }, |
16 | | - "files": [ |
17 | | - "dist/", |
18 | | - "README.md" |
19 | | - ], |
| 16 | + "files": ["dist", "README.md"], |
20 | 17 | "scripts": { |
21 | 18 | "build": "tsc", |
22 | 19 | "dev": "tsc --watch", |
23 | | - "lint": "tsc --noEmit", |
| 20 | + "lint": "eslint src --max-warnings 0", |
| 21 | +"lint:ts": "tsc --noEmit", |
24 | 22 | "typecheck": "tsc --noEmit", |
| 23 | + "test:types": "tsd", |
| 24 | + "test": "tsd", |
| 25 | + "test:e2e": "npm run build && (cd ../../../../examples/web/RunAnywhereAI && npm run build)", |
25 | 26 | "clean": "rm -rf dist", |
26 | 27 | "prepublishOnly": "test -d dist || (echo 'ERROR: Not built. Run npm run build first.' && exit 1)" |
27 | 28 | }, |
28 | | - "keywords": [ |
29 | | - "runanywhere", |
30 | | - "ai", |
31 | | - "llm", |
32 | | - "stt", |
33 | | - "tts", |
34 | | - "vad", |
35 | | - "wasm", |
36 | | - "webgpu", |
37 | | - "on-device", |
38 | | - "browser", |
39 | | - "inference" |
40 | | - ], |
| 29 | + "keywords": ["runanywhere", "ai", "llm", "stt", "tts", "vad", "wasm", "webgpu", "on-device", "browser", "inference"], |
41 | 30 | "author": "RunAnywhere AI", |
42 | 31 | "license": "MIT", |
43 | | - "repository": { |
44 | | - "type": "git", |
45 | | - "url": "https://github.com/RunanywhereAI/runanywhere-sdks.git", |
46 | | - "directory": "sdk/runanywhere-web/packages/core" |
47 | | - }, |
| 32 | + "repository": {"type": "git", "url": "https://github.com/RunanywhereAI/runanywhere-sdks.git", "directory": "sdk/runanywhere-web/packages/core"}, |
48 | 33 | "homepage": "https://github.com/RunanywhereAI/runanywhere-sdks/tree/main/sdk/runanywhere-web", |
49 | | - "bugs": { |
50 | | - "url": "https://github.com/RunanywhereAI/runanywhere-sdks/issues" |
51 | | - }, |
52 | | - "publishConfig": { |
53 | | - "access": "public" |
54 | | - }, |
55 | | - "engines": { |
56 | | - "node": ">=18.0.0" |
57 | | - }, |
| 34 | + "bugs": {"url": "https://github.com/RunanywhereAI/runanywhere-sdks/issues"}, |
| 35 | + "publishConfig": {"access": "public"}, |
| 36 | + "engines": {"node": ">=18.0.0"}, |
58 | 37 | "peerDependencies": {}, |
| 38 | + "tsd": { |
| 39 | + "directory": "src/__tests__" |
| 40 | + }, |
59 | 41 | "devDependencies": { |
60 | | - "typescript": "^5.6.0" |
| 42 | + "typescript": "^5.6.0", |
| 43 | + "tsd": "^0.33.0", |
| 44 | + "eslint": "^9.0.0", |
| 45 | + "@eslint/js": "^9.0.0", |
| 46 | + "typescript-eslint": "^8.0.0" |
61 | 47 | } |
62 | 48 | } |
0 commit comments