-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
77 lines (77 loc) · 2.31 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "@knocklabs/react-core",
"description": "A set of React components to build notification experiences powered by Knock",
"author": "@knocklabs",
"version": "0.3.0",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"typings": "dist/types/index.d.ts",
"react-native": "./src/index.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.mjs",
"types": "./dist/types/index.d.ts",
"react-native": "./src/index.ts",
"default": "./dist/cjs/index.js"
}
},
"files": [
"dist",
"src",
"README.md"
],
"scripts": {
"clean": "rimraf dist",
"dev": "tsc && vite build --watch --emptyOutDir false",
"build": "yarn clean && yarn build:esm && yarn build:cjs",
"build:esm": "BUILD_TARGET=esm; vite build",
"build:cjs": "BUILD_TARGET=cjs; vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier \"src/**/*.{js,ts,tsx}\" --write",
"format:check": "prettier \"src/**/*.{js,ts,tsx}\" --check",
"test": "vitest run",
"test:watch": "vitest",
"type:check": "tsc --noEmit",
"coverage": "vitest run --coverage",
"preview": "vite preview"
},
"repository": {
"type": "git",
"url": "git+https://github.com/knocklabs/javascript.git"
},
"bugs": {
"url": "https://github.com/knocklabs/javascript/issues"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"dependencies": {
"@knocklabs/client": "workspace:^",
"date-fns": "^4.0.0",
"swr": "^2.3.0",
"zustand": "^3.7.2"
},
"devDependencies": {
"@testing-library/react": "^14.2.0",
"@types/react": "^18.3.6",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.16.0",
"@vitejs/plugin-react": "^4.3.4",
"babel-plugin-react-require": "^4.0.3",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"jsdom": "^25.0.1",
"react": "^18.2.0",
"rimraf": "^6.0.1",
"rollup-plugin-execute": "^1.1.1",
"typescript": "^5.6.3",
"vite": "^5.0.0",
"vite-plugin-dts": "^4.3.0",
"vite-plugin-no-bundle": "^4.0.0",
"vitest": "^2.1.4"
}
}