Skip to content

Commit 90c22ab

Browse files
committed
bundle core into lib instead of separate npm package
Remove @react-avatar-editor/core from dependencies and from Vite's external list so the core code is bundled directly into the react-avatar-editor dist output. Core remains a separate workspace package for development but consumers only install react-avatar-editor.
1 parent ed7232a commit 90c22ab

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

packages/lib/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-avatar-editor",
3-
"version": "14.0.0",
3+
"version": "15.0.0",
44
"description": "Avatar / profile picture component. Resize and crop your uploaded image using a intuitive user interface.",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
@@ -29,9 +29,6 @@
2929
"dist",
3030
"src"
3131
],
32-
"dependencies": {
33-
"@react-avatar-editor/core": "workspace:*"
34-
},
3532
"peerDependencies": {
3633
"react": "^0.14.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
3734
"react-dom": "^0.14.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"

packages/lib/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
},
1313
sourcemap: true,
1414
rollupOptions: {
15-
external: ['react', 'react-dom', '@react-avatar-editor/core'],
15+
external: ['react', 'react-dom'],
1616
},
1717
},
1818
resolve: {

pnpm-lock.yaml

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)