customizable-toast-notification 3.14.0 → 3.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customizable-toast-notification",
3
- "version": "3.14.0",
3
+ "version": "3.16.0",
4
4
  "description": "A lightweight, zero-dependency toast notification library with CTA support for modern JavaScript applications with production-grade reliability and comprehensive system mechanisms",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -15,6 +15,7 @@
15
15
  "require": "./dist/index.cjs",
16
16
  "default": "./dist/index.umd.js"
17
17
  },
18
+ "./index.css": "./dist/index.css",
18
19
  "./package.json": "./package.json"
19
20
  },
20
21
  "engines": {
@@ -35,18 +36,23 @@
35
36
  "scripts": {
36
37
  "dist:clean": "rm -rf dist",
37
38
  "build:js": "rollup -c",
39
+ "build:css": "node esbuild-css.mjs",
40
+ "build": "npm run build:js && npm run build:css",
38
41
  "build:types:emit": "tsc -p tsconfig.types.json",
39
42
  "build:types:bundle": "rollup -c rollup.dts.config.mjs",
40
43
  "build:types": "npm run build:types:emit && npm run build:types:bundle",
41
- "zone-build": "npm run dist:clean && npm run build:js && npm run build:types && du -h dist/*",
42
- "build": "rollup -c",
44
+ "zone-build": "npm run dist:clean && npm run build && npm run build:types && du -h dist/*",
43
45
  "test:builds": "node scripts/test-build.cjs",
44
46
  "test": "npm run ci:test",
45
47
  "ci:test": "node tests/logic/logic-verification.test.mjs",
48
+ "test:all": "npm run lint && npm run ci:test && npm run test:builds && npm run test:e2e && npm run test:coverage",
49
+ "test:coverage": "c8 --config c8.config.json node tests/logic/logic-verification.test.mjs",
46
50
  "lint": "eslint src",
47
51
  "test:e2e": "playwright test",
48
52
  "test:e2e:ui": "playwright test --ui",
49
53
  "test:e2e:headed": "playwright test --headed",
54
+ "version": "node scripts/sync-version.cjs && npm run zone-build",
55
+ "prepublishOnly": "node scripts/sync-version.cjs && npm run zone-build",
50
56
  "prepare": "husky"
51
57
  },
52
58
  "keywords": [
@@ -112,14 +118,18 @@
112
118
  "dist/index.cjs",
113
119
  "dist/index.cjs.map",
114
120
  "dist/index.d.ts",
121
+ "dist/index.css",
122
+ "dist/index.css.map",
123
+ "dist/index.css.d.ts",
115
124
  "README.md",
116
125
  "LICENSE",
117
126
  "CHANGELOG.md"
118
127
  ],
119
128
  "devDependencies": {
120
- "@babel/core": "^7.29.7",
121
- "@babel/preset-env": "^7.29.7",
129
+ "@babel/core": "^8.0.6",
130
+ "@babel/preset-env": "^8.0.0",
122
131
  "@commitlint/cli": "^21.2.1",
132
+ "c8": "^10.1.3",
123
133
  "@commitlint/config-conventional": "^21.2.0",
124
134
  "@eslint/js": "^10.0.1",
125
135
  "@playwright/test": "1.63.0",
@@ -130,6 +140,7 @@
130
140
  "@rollup/plugin-terser": "^1.0.0",
131
141
  "@semantic-release/changelog": "^7.0.0",
132
142
  "@semantic-release/git": "^11.0.1",
143
+ "esbuild": "^0.28.2",
133
144
  "eslint": "^10.8.0",
134
145
  "globals": "^17.9.0",
135
146
  "husky": "^9.1.7",