|
21 | 21 | "license": "MIT",
|
22 | 22 | "exports": {
|
23 | 23 | ".": {
|
24 |
| - "types": "./lib/esm/index.d.ts", |
| 24 | + "types": "./lib/types/index.d.ts", |
25 | 25 | "import": "./lib/esm/index.js",
|
26 | 26 | "require": "./lib/cjs/index.js"
|
27 | 27 | },
|
28 | 28 | "./components/*": {
|
29 |
| - "types": "./lib/esm/components/*/index.d.ts", |
| 29 | + "types": "./lib/types/components/*/index.d.ts", |
30 | 30 | "import": "./lib/esm/components/*/index.js",
|
31 | 31 | "require": "./lib/cjs/components/*/index.js"
|
32 |
| - } |
| 32 | + }, |
| 33 | + "./package.json": "./package.json" |
33 | 34 | },
|
34 | 35 | "main": "lib/cjs/index.js",
|
35 | 36 | "module": "lib/esm/index.js",
|
|
38 | 39 | "lib"
|
39 | 40 | ],
|
40 | 41 | "scripts": {
|
41 |
| - "build": "rimraf coverage lib && bun build:cjs && bun build:esm", |
| 42 | + "build": "rimraf lib && bun build:fast", |
42 | 43 | "build:cjs": "tsc -p tsconfig.build.json --module CommonJS --outDir lib/cjs",
|
43 |
| - "build:esm": "tsc -p tsconfig.build.json --module ESNext --declaration --outDir lib/esm", |
| 44 | + "build:esm": "tsc -p tsconfig.build.json --module ESNext --outDir lib/esm", |
| 45 | + "build:fast": "bun build:cjs && bun build:esm && bun build:types", |
| 46 | + "build:types": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --outDir lib/types", |
44 | 47 | "clean": "rimraf .turbo coverage lib node_modules tsconfig.tsbuildinfo",
|
45 |
| - "dev": "", |
| 48 | + "dev": "bun build:fast --watch", |
46 | 49 | "format": "prettier . --write",
|
47 | 50 | "format:check": "prettier . --check",
|
48 |
| - "postinstall": "bun run build", |
49 | 51 | "lint": "eslint .",
|
50 | 52 | "lint:fix": "eslint . --fix",
|
51 | 53 | "prepack": "clean-package",
|
52 |
| - "postpack": "clean-package restore", |
53 | 54 | "prepublishOnly": "bun run build",
|
54 | 55 | "test": "vitest",
|
55 | 56 | "test:coverage": "vitest run --coverage",
|
56 | 57 | "typecheck": "tsc --noEmit"
|
57 | 58 | },
|
58 | 59 | "dependencies": {
|
59 | 60 | "@floating-ui/core": "1.6.0",
|
60 |
| - "@floating-ui/react": "0.26.9", |
| 61 | + "@floating-ui/react": "0.26.10", |
61 | 62 | "classnames": "2.5.1",
|
62 | 63 | "debounce": "2.0.0",
|
63 | 64 | "flowbite": "2.3.0",
|
64 | 65 | "react-icons": "5.0.1",
|
65 |
| - "react-indiana-drag-scroll": "2.2.0", |
66 | 66 | "tailwind-merge": "2.2.2"
|
67 | 67 | },
|
68 | 68 | "devDependencies": {
|
69 | 69 | "@testing-library/jest-dom": "6.4.2",
|
70 | 70 | "@testing-library/react": "14.2.2",
|
71 | 71 | "@testing-library/user-event": "14.5.2",
|
72 |
| - "@types/react": "18.2.67", |
73 |
| - "@types/react-dom": "18.2.22", |
74 |
| - "@typescript-eslint/eslint-plugin": "7.3.1", |
75 |
| - "@typescript-eslint/parser": "7.3.1", |
| 72 | + "@types/react": "18.2.73", |
| 73 | + "@types/react-dom": "18.2.23", |
| 74 | + "@typescript-eslint/eslint-plugin": "7.4.0", |
| 75 | + "@typescript-eslint/parser": "7.4.0", |
76 | 76 | "@vitejs/plugin-react": "4.2.1",
|
77 | 77 | "@vitest/coverage-v8": "1.4.0",
|
78 |
| - "clean-package": "2.2.0", |
79 | 78 | "eslint-plugin-react": "7.34.1",
|
80 | 79 | "eslint-plugin-storybook": "0.8.0",
|
81 |
| - "eslint-plugin-vitest": "0.3.26", |
| 80 | + "eslint-plugin-vitest": "0.4.1", |
82 | 81 | "jsdom": "24.0.0",
|
83 |
| - "typescript": "5.4.2", |
| 82 | + "mime": "^4.0.1", |
| 83 | + "typescript": "5.4.3", |
84 | 84 | "vitest": "1.4.0"
|
85 | 85 | },
|
86 | 86 | "peerDependencies": {
|
87 |
| - "react": "^18", |
88 |
| - "react-dom": "^18", |
| 87 | + "react": ">=18", |
| 88 | + "react-dom": ">=18", |
89 | 89 | "tailwindcss": "^3"
|
90 | 90 | },
|
91 | 91 | "clean-package": {
|
92 | 92 | "remove": [
|
93 |
| - "scripts", |
94 | 93 | "devDependencies",
|
95 | 94 | "clean-package"
|
96 |
| - ] |
| 95 | + ], |
| 96 | + "replace": { |
| 97 | + "scripts": { |
| 98 | + "postpublish": "clean-package restore" |
| 99 | + } |
| 100 | + } |
97 | 101 | }
|
98 | 102 | }
|
0 commit comments