Skip to content

Commit 1d4e4e9

Browse files
committed
Added react package
1 parent 08eda9c commit 1d4e4e9

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed

packages/react/package.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "@exceptionless/react",
3+
"version": "2.0.0-pre",
4+
"description": "JavaScript client for Exceptionless",
5+
"author": {
6+
"name": "exceptionless",
7+
"url": "https://exceptionless.com"
8+
},
9+
"keywords": [
10+
"exceptionless",
11+
"error",
12+
"feature",
13+
"logging",
14+
"tracking",
15+
"reporting",
16+
"react"
17+
],
18+
"repository": {
19+
"url": "git://github.com/exceptionless/Exceptionless.JavaScript.git",
20+
"type": "git"
21+
},
22+
"bugs": {
23+
"url": "https://github.com/exceptionless/Exceptionless.JavaScript/issues"
24+
},
25+
"private": true,
26+
"license": "Apache-2.0",
27+
"type": "module",
28+
"main": "dist/index.js",
29+
"types": "dist/index.d.ts",
30+
"unpkg": "dist/index.min.js",
31+
"jsdelivr": "dist/index.min.js",
32+
"exports": {
33+
".": "./dist/index.js",
34+
"./package.json": "./package.json"
35+
},
36+
"jest": {
37+
"moduleFileExtensions": [
38+
"js",
39+
"ts"
40+
],
41+
"moduleNameMapper": {
42+
"^@exceptionless/(.*)$": "<rootDir>/../$1/src"
43+
},
44+
"preset": "ts-jest",
45+
"resolver": "jest-ts-webcompat-resolver",
46+
"testEnvironment": "jsdom"
47+
},
48+
"scripts": {
49+
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --minify --sourcemap --target=es2020 --format=esm --outfile=dist/index.min.js",
50+
"watch": "tsc -p tsconfig.json -w --preserveWatchOutput",
51+
"test": "jest"
52+
},
53+
"sideEffects": false,
54+
"devDependencies": {
55+
"@jest/globals": "26.6.2",
56+
"esbuild": "0.8.49",
57+
"jest": "26.6.3",
58+
"jest-ts-webcompat-resolver": "1.0.0",
59+
"ts-jest": "26.5.1"
60+
},
61+
"dependencies": {
62+
"@exceptionless/browser": "2.0.0-pre"
63+
}
64+
}

packages/react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Exceptionless } from "@exceptionless/browser";

packages/react/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"lib": ["DOM", "ES2020"],
5+
"outDir": "dist",
6+
"rootDir": "src"
7+
},
8+
"include": ["src"]
9+
}

0 commit comments

Comments
 (0)