|
1 | 1 | { |
2 | 2 | "name": "react-tw-breakpointer", |
3 | | - "version": "0.1.1", |
| 3 | + "version": "0.1.2", |
4 | 4 | "description": "A React component that displays the current Tailwind CSS breakpoint and viewport dimensions", |
5 | 5 | "type": "module", |
6 | | - "main": "dist/index.cjs", |
7 | | - "module": "dist/index.js", |
8 | | - "types": "dist/index.d.ts", |
| 6 | + "main": "dist/client.cjs", |
| 7 | + "module": "dist/client.js", |
| 8 | + "types": "dist/client.d.ts", |
9 | 9 | "exports": { |
10 | 10 | ".": { |
11 | | - "types": "./dist/index.d.ts", |
12 | | - "import": "./dist/index.js", |
13 | | - "require": "./dist/index.cjs" |
| 11 | + "types": "./dist/client.d.ts", |
| 12 | + "react-server": "./dist/noop.js", |
| 13 | + "development": "./dist/client.js", |
| 14 | + "production": "./dist/noop.js", |
| 15 | + "import": "./dist/client.js", |
| 16 | + "require": "./dist/client.cjs", |
| 17 | + "default": "./dist/client.js" |
| 18 | + }, |
| 19 | + "./noop": { |
| 20 | + "import": "./dist/noop.js", |
| 21 | + "require": "./dist/noop.cjs" |
| 22 | + }, |
| 23 | + "./client": { |
| 24 | + "import": "./dist/client.js", |
| 25 | + "require": "./dist/client.cjs" |
14 | 26 | } |
15 | 27 | }, |
16 | 28 | "files": ["dist", "README.md", "LICENSE"], |
17 | 29 | "sideEffects": false, |
18 | 30 | "scripts": { |
19 | | - "build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --external react,react-dom", |
20 | | - "dev": "tsup src/index.ts --format esm,cjs --dts --sourcemap --watch --external react,react-dom", |
| 31 | + "build": "tsup --format esm,cjs --dts --sourcemap --clean --external react,react-dom", |
| 32 | + "dev": "tsup --format esm,cjs --dts --sourcemap --watch --external react,react-dom", |
21 | 33 | "typecheck": "tsc --noEmit", |
22 | 34 | "lint": "biome check --write .", |
23 | 35 | "format": "biome format --write .", |
|
26 | 38 | "publish:dry": "bun run build && npm pack --dry-run", |
27 | 39 | "publish:npm": "bun run build && npm publish", |
28 | 40 | "size": "bun run build && bundlesize", |
29 | | - "analyze": "bun run build && echo 'ESM:' && gzip -c dist/index.js | wc -c && echo 'CJS:' && gzip -c dist/index.cjs | wc -c", |
| 41 | + "analyze": "bun run build && echo 'ESM:' && gzip -c dist/client.js | wc -c && echo 'CJS:' && gzip -c dist/client.cjs | wc -c", |
30 | 42 | "test": "vitest", |
31 | 43 | "test:ui": "vitest --ui", |
32 | 44 | "test:run": "vitest run", |
|
0 commit comments