pixedi 1.10.0 → 1.10.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## 1.10.1
6
6
 
7
+ - Fix UMD build output to use .cjs extension and add exports field to package.json.
8
+
9
+ ## 1.10.0
10
+
7
11
  - Add `background` option to settings.
8
12
 
9
13
  ## 1.9.0
package/package.json CHANGED
@@ -1,26 +1,31 @@
1
1
  {
2
2
  "name": "pixedi",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "license": "MIT",
5
5
  "description": "A lightweight, embeddable React image editor component.",
6
6
  "type": "module",
7
- "main": "./dist/lib/index.umd.js",
7
+ "main": "./dist/lib/index.umd.cjs",
8
8
  "module": "./dist/lib/index.js",
9
9
  "types": "./dist/lib/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/lib/index.js",
13
+ "require": "./dist/lib/index.umd.cjs",
14
+ "types": "./dist/lib/index.d.ts"
15
+ }
16
+ },
10
17
  "files": [
11
18
  "dist/lib",
12
19
  "dist/widget",
13
20
  "README.md",
14
21
  "CHANGELOG.md"
15
22
  ],
16
- "dependencies": {
17
- "react-router": "^8.0.1"
18
- },
19
23
  "peerDependencies": {
20
24
  "react": "^19.2.7",
21
25
  "react-dom": "^19.2.7"
22
26
  },
23
27
  "devDependencies": {
28
+ "react-router": "^8.0.1",
24
29
  "@eslint/js": "^10.0.1",
25
30
  "@storybook/addon-actions": "^8.6.0",
26
31
  "@storybook/addon-essentials": "^8.6.0",
@@ -50,15 +55,13 @@
50
55
  },
51
56
  "scripts": {
52
57
  "dev": "vite",
53
- "build:app": "tsc -b tsconfig.app.json && vite build",
54
58
  "build:widget": "vite build --config vite.widget.config.ts --mode production",
55
59
  "build:lib": "vite build --config vite.lib.config.ts && tsc -p tsconfig.lib.json",
56
- "build": "pnpm build:app && pnpm build:widget && pnpm build:lib",
60
+ "build": "pnpm build:widget && pnpm build:lib",
57
61
  "lint": "eslint .",
58
- "preview": "vite preview",
59
62
  "storybook": "storybook dev -p 6006",
60
63
  "build-storybook": "storybook build",
61
- "type-check": "tsc -b tsconfig.app.json",
64
+ "type-check": "tsc -b tsconfig.lib.json",
62
65
  "test": "vitest run",
63
66
  "test:watch": "vitest"
64
67
  }
File without changes