|
3 | 3 | "version": "0.1.0", |
4 | 4 | "private": true, |
5 | 5 | "type": "module", |
6 | | - "main": "src/index.ts", |
| 6 | + "main": "dist/claudius.js", |
| 7 | + "module": "dist/claudius.js", |
| 8 | + "types": "dist/index.d.ts", |
| 9 | + "exports": { |
| 10 | + ".": { |
| 11 | + "types": "./dist/index.d.ts", |
| 12 | + "import": "./dist/claudius.js" |
| 13 | + }, |
| 14 | + "./embed": "./dist/claudius-embed.iife.js", |
| 15 | + "./style.css": "./dist/claudius.css" |
| 16 | + }, |
| 17 | + "files": [ |
| 18 | + "dist" |
| 19 | + ], |
7 | 20 | "scripts": { |
8 | 21 | "dev": "vite", |
9 | | - "build": "vite build", |
10 | | - "build:embed": "vite build", |
| 22 | + "build": "tsc --emitDeclarationOnly && vite build && vite build --config vite.config.embed.ts", |
| 23 | + "build:lib": "tsc --emitDeclarationOnly && vite build", |
| 24 | + "build:embed": "vite build --config vite.config.embed.ts", |
11 | 25 | "test": "vitest run", |
12 | | - "test:watch": "vitest" |
| 26 | + "test:watch": "vitest", |
| 27 | + "lint": "eslint src/", |
| 28 | + "lint:fix": "eslint src/ --fix", |
| 29 | + "format": "prettier --write \"src/**/*.{ts,tsx,css}\"", |
| 30 | + "format:check": "prettier --check \"src/**/*.{ts,tsx,css}\"", |
| 31 | + "typecheck": "tsc --noEmit" |
| 32 | + }, |
| 33 | + "peerDependencies": { |
| 34 | + "react": "^18.0.0 || ^19.0.0", |
| 35 | + "react-dom": "^18.0.0 || ^19.0.0" |
13 | 36 | }, |
14 | 37 | "dependencies": { |
15 | 38 | "react": "^18.3.0", |
16 | 39 | "react-dom": "^18.3.0" |
17 | 40 | }, |
18 | 41 | "devDependencies": { |
19 | | - "@testing-library/react": "^16.3.0", |
20 | 42 | "@testing-library/jest-dom": "^6.6.0", |
| 43 | + "@testing-library/react": "^16.3.0", |
21 | 44 | "@testing-library/user-event": "^14.6.0", |
22 | 45 | "@types/react": "^18.3.0", |
23 | 46 | "@types/react-dom": "^18.3.0", |
| 47 | + "@vitejs/plugin-react": "^4.4.0", |
24 | 48 | "autoprefixer": "^10.4.0", |
| 49 | + "eslint": "^9.24.0", |
| 50 | + "@eslint/js": "^9.24.0", |
| 51 | + "typescript-eslint": "^8.30.0", |
| 52 | + "eslint-plugin-react-hooks": "^5.2.0", |
| 53 | + "eslint-plugin-react-refresh": "^0.4.20", |
| 54 | + "prettier": "^3.5.0", |
| 55 | + "eslint-config-prettier": "^10.1.0", |
25 | 56 | "jsdom": "^26.0.0", |
26 | 57 | "postcss": "^8.5.0", |
27 | 58 | "tailwindcss": "^3.4.0", |
28 | 59 | "typescript": "^5.8.0", |
29 | 60 | "vite": "^6.2.0", |
30 | | - "@vitejs/plugin-react": "^4.4.0", |
31 | 61 | "vitest": "^4.1.0" |
32 | 62 | } |
33 | 63 | } |
0 commit comments