|
1 | 1 | { |
2 | 2 | "name": "react-contextual-analytics", |
3 | | - "version": "1.1.1", |
| 3 | + "version": "1.1.2", |
4 | 4 | "description": "React Contextual Analytics (RCA) is a framework for collecting and emitting rich contextual analytics events to various analytics providers.", |
5 | 5 | "homepage": "https://github.com/0xdeafcafe/react-contextual-analytics#readme", |
6 | 6 | "bugs": { |
|
13 | 13 | "license": "MIT", |
14 | 14 | "author": "0xdeafcafe <git@alex.forbes.red>", |
15 | 15 | "type": "module", |
16 | | - "main": "dist/index.js", |
| 16 | + "main": "dist/index.cjs", |
| 17 | + "module": "dist/index.js", |
17 | 18 | "types": "dist/index.d.ts", |
18 | 19 | "scripts": { |
19 | 20 | "clean": "rm -rf dist", |
20 | | - "build": "pnpm run clean && pnpm run build:js && pnpm run build:types", |
21 | | - "build:js": "esbuild src/index.ts src/providers/index.ts --bundle --outdir=dist --outbase=src --sourcemap --minify --format=esm --platform=neutral --target=es2020 --external:react --external:react-dom --external:react/jsx-runtime", |
22 | | - "build:types": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationMap --outDir dist", |
| 21 | + "build": "pnpm run clean && tsup", |
23 | 22 | "prepublishOnly": "cp ../../README.md ./README.md", |
24 | 23 | "typecheck": "tsgo --noEmit", |
25 | 24 | "test": "vitest", |
|
28 | 27 | "test:ui": "vitest --ui" |
29 | 28 | }, |
30 | 29 | "devDependencies": { |
| 30 | + "@tsconfig/recommended": "^1.0.8", |
31 | 31 | "@testing-library/dom": "^10.4.1", |
32 | 32 | "@testing-library/jest-dom": "^6.1.4", |
33 | 33 | "@testing-library/react": "^16.3.0", |
|
39 | 39 | "esbuild": "^0.25.9", |
40 | 40 | "jsdom": "^26.1.0", |
41 | 41 | "react-dom": "^19.1.1", |
| 42 | + "tsup": "^8.5.0", |
42 | 43 | "typescript": "^5.3.3", |
43 | 44 | "vitest": "^3.2.4" |
44 | 45 | }, |
|
51 | 52 | ], |
52 | 53 | "exports": { |
53 | 54 | ".": { |
| 55 | + "types": "./dist/index.d.ts", |
54 | 56 | "import": "./dist/index.js", |
55 | | - "types": "./dist/index.d.ts" |
56 | | - }, |
57 | | - "./providers": { |
58 | | - "import": "./dist/providers/index.js", |
59 | | - "types": "./dist/providers/index.d.ts" |
| 57 | + "require": "./dist/index.cjs" |
60 | 58 | } |
61 | 59 | } |
62 | 60 | } |
0 commit comments