@novu/js 2.5.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/js",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
4
4
  "repository": "https://github.com/novuhq/novu",
5
5
  "description": "Novu's JavaScript SDK for building custom inbox notification experiences",
6
6
  "author": "",
@@ -15,8 +15,8 @@
15
15
  "default": "./dist/esm/index.mjs"
16
16
  },
17
17
  "require": {
18
- "types": "./dist/cjs/index.js",
19
- "default": "./dist/cjs/index.d.ts"
18
+ "types": "./dist/cjs/index.d.ts",
19
+ "default": "./dist/cjs/index.js"
20
20
  }
21
21
  },
22
22
  "./ui": {
@@ -25,8 +25,8 @@
25
25
  "default": "./dist/esm/ui/index.mjs"
26
26
  },
27
27
  "require": {
28
- "types": "./dist/cjs/ui/index.js",
29
- "default": "./dist/cjs/ui/index.d.ts"
28
+ "types": "./dist/cjs/ui/index.d.ts",
29
+ "default": "./dist/cjs/ui/index.js"
30
30
  }
31
31
  },
32
32
  "./themes": {
@@ -35,8 +35,8 @@
35
35
  "default": "./dist/esm/themes/index.mjs"
36
36
  },
37
37
  "require": {
38
- "types": "./dist/cjs/themes/index.js",
39
- "default": "./dist/cjs/themes/index.d.ts"
38
+ "types": "./dist/cjs/themes/index.d.ts",
39
+ "default": "./dist/cjs/themes/index.js"
40
40
  }
41
41
  },
42
42
  "./internal": {
@@ -45,8 +45,8 @@
45
45
  "default": "./dist/esm/internal/index.mjs"
46
46
  },
47
47
  "require": {
48
- "types": "./dist/cjs/internal/index.js",
49
- "default": "./dist/cjs/internal/index.d.ts"
48
+ "types": "./dist/cjs/internal/index.d.ts",
49
+ "default": "./dist/cjs/internal/index.js"
50
50
  }
51
51
  }
52
52
  },
@@ -65,19 +65,6 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "scripts": {
69
- "clean": "rimraf ./dist",
70
- "start:server": "http-server ./dist -p 4010",
71
- "build": "pnpm run clean && NODE_ENV=production tsup && pnpm run post:build",
72
- "build:umd": "webpack --config webpack.config.cjs",
73
- "build:watch": "concurrently \"pnpm run tsup:watch\" \"pnpm run start:server\"",
74
- "tsup:watch": "tsup --watch && pnpm run post:build",
75
- "post:build": "node scripts/size-limit.mjs && pnpm run check-exports",
76
- "check-exports": "attw --pack .",
77
- "lint": "eslint src",
78
- "lint:fix": "pnpm lint -- --fix",
79
- "test": "jest"
80
- },
81
68
  "browserslist": {
82
69
  "production": [
83
70
  ">0.2%",
@@ -91,7 +78,7 @@
91
78
  ]
92
79
  },
93
80
  "devDependencies": {
94
- "@arethetypeswrong/cli": "^0.15.4",
81
+ "@arethetypeswrong/cli": "^0.16.4",
95
82
  "@types/jest": "^29.2.3",
96
83
  "@types/node": "^20.15.0",
97
84
  "autoprefixer": "^10.4.0",
@@ -126,7 +113,6 @@
126
113
  },
127
114
  "dependencies": {
128
115
  "@floating-ui/dom": "^1.6.7",
129
- "@novu/client": "^2.0.0",
130
116
  "class-variance-authority": "^0.7.0",
131
117
  "clsx": "^2.1.1",
132
118
  "mitt": "^3.0.1",
@@ -134,9 +120,25 @@
134
120
  "solid-floating-ui": "^0.3.1",
135
121
  "solid-js": "^1.8.11",
136
122
  "solid-motionone": "^1.0.1",
137
- "tailwind-merge": "^2.4.0"
123
+ "tailwind-merge": "^2.4.0",
124
+ "@novu/client": "2.0.2"
138
125
  },
139
126
  "nx": {
140
- "tags": ["package:public"]
127
+ "tags": [
128
+ "package:public"
129
+ ]
130
+ },
131
+ "scripts": {
132
+ "clean": "rimraf ./dist",
133
+ "start:server": "http-server ./dist -p 4010",
134
+ "build": "pnpm run clean && NODE_ENV=production tsup",
135
+ "postbuild": "./scripts/copy-package-json.sh && node scripts/size-limit.mjs && pnpm run check-exports",
136
+ "build:umd": "webpack --config webpack.config.cjs",
137
+ "build:watch": "concurrently \"pnpm run tsup:watch\" \"pnpm run start:server\"",
138
+ "tsup:watch": "tsup --watch",
139
+ "check-exports": "attw --pack .",
140
+ "lint": "eslint src",
141
+ "lint:fix": "pnpm lint -- --fix",
142
+ "test": "jest"
141
143
  }
142
- }
144
+ }