@novu/js 2.4.0 → 2.6.0

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.4.0",
3
+ "version": "2.6.0",
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
  },
@@ -68,11 +68,11 @@
68
68
  "scripts": {
69
69
  "clean": "rimraf ./dist",
70
70
  "start:server": "http-server ./dist -p 4010",
71
- "build": "pnpm run clean && NODE_ENV=production tsup && pnpm run post:build",
71
+ "build": "pnpm run clean && NODE_ENV=production tsup",
72
+ "postbuild": "./scripts/copy-package-json.sh && node scripts/size-limit.mjs && pnpm run check-exports",
72
73
  "build:umd": "webpack --config webpack.config.cjs",
73
74
  "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",
75
+ "tsup:watch": "tsup --watch",
76
76
  "check-exports": "attw --pack .",
77
77
  "lint": "eslint src",
78
78
  "lint:fix": "pnpm lint -- --fix",
@@ -91,7 +91,7 @@
91
91
  ]
92
92
  },
93
93
  "devDependencies": {
94
- "@arethetypeswrong/cli": "^0.15.4",
94
+ "@arethetypeswrong/cli": "^0.16.4",
95
95
  "@types/jest": "^29.2.3",
96
96
  "@types/node": "^20.15.0",
97
97
  "autoprefixer": "^10.4.0",