Skip to content

Commit

Permalink
Update package.json files in banger-editor, pm, and pm-markdown f
Browse files Browse the repository at this point in the history
- Added new dependencies and devDependencies in banger-editor to enhance functionality and type safety.
- Updated exports in banger-editor to include additional module entry points for better accessibility.
- Cleaned up package.json in pm by removing the unused kushan.ts export.
- Streamlined keywords and files sections in pm-markdown for consistency and clarity.
  • Loading branch information
kepta committed Jan 5, 2025
1 parent 3360b0c commit 6cad1a3
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 27 deletions.
57 changes: 42 additions & 15 deletions packages/banger-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
"postpublish": "tsx ../../packages/tooling/scripts/postpublish-run.ts",
"build:tsup": "tsup --config tsup.config.ts"
},
"dependencies": {
"jotai": "^2.11.0"
},
"devDependencies": {
"@types/orderedmap": "^2.0.0",
"tsconfig": "workspace:*",
"tsup": "^8.3.5",
"tsup-config": "workspace:*",
"@bangle.dev/packager": "workspace:*",
"prosemirror-markdown": "^1.13.1"
},
"peerDependencies": {
"orderedmap": "*",
"prosemirror-commands": "*",
Expand All @@ -45,6 +56,37 @@
"prosemirror-transform": "*",
"prosemirror-view": "*"
},
"exports": {
".": "./src/index.ts",
"./active-node": "./src/active-node.ts",
"./base": "./src/base.ts",
"./blockquote": "./src/blockquote.ts",
"./bold": "./src/bold.ts",
"./code": "./src/code.ts",
"./code-block": "./src/code-block.ts",
"./common": "./src/common/index.ts",
"./drag": "./src/drag/index.ts",
"./drop-gap-cursor": "./src/drop-gap-cursor.ts",
"./hard-break": "./src/hard-break.ts",
"./heading": "./src/heading.ts",
"./history": "./src/history.ts",
"./horizontal-rule": "./src/horizontal-rule.ts",
"./hover": "./src/hover.ts",
"./image": "./src/image.ts",
"./italic": "./src/italic.ts",
"./link": "./src/link/index.ts",
"./list": "./src/list.ts",
"./package.json": "./package.json",
"./paragraph": "./src/paragraph.ts",
"./placeholder": "./src/placeholder.ts",
"./pm": "./src/pm/index.ts",
"./pm-utils": "./src/pm-utils/index.ts",
"./store": "./src/store/index.ts",
"./strike": "./src/strike.ts",
"./suggestions": "./src/suggestions/index.ts",
"./test-helpers": "./src/test-helpers/index.ts",
"./underline": "./src/underline.ts"
},
"peerDependenciesMeta": {
"orderedmap": {
"optional": true
Expand Down Expand Up @@ -89,20 +131,5 @@
"optional": false
}
},
"dependencies": {
"jotai": "^2.11.0"
},
"devDependencies": {
"@types/orderedmap": "^2.0.0",
"tsconfig": "workspace:*",
"tsup": "^8.3.5",
"tsup-config": "workspace:*",
"@bangle.dev/packager": "workspace:*",
"prosemirror-markdown": "^1.13.1"
},
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
},
"sideEffects": false
}
14 changes: 3 additions & 11 deletions packages/pm-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
"url": "http://github.com/kepta"
},
"description": "A modern collection of ProseMirror packages for building powerful editing experiences",
"keywords": [
"prosemirror",
"rich text editor",
"editor",
"typescript"
],
"keywords": ["prosemirror", "rich text editor", "editor", "typescript"],
"homepage": "https://bangle.io",
"bugs": {
"url": "https://github.com/bangle-io/banger-editor/issues"
Expand All @@ -28,10 +23,7 @@
"access": "public"
},
"main": "./src/index.ts",
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"scripts": {
"prepublishOnly": "tsx ../../packages/tooling/scripts/prepublish-run.ts",
"postpublish": "tsx ../../packages/tooling/scripts/postpublish-run.ts",
Expand Down Expand Up @@ -71,4 +63,4 @@
"tokenizer": "src/tokenizer.ts"
}
}
}
}
1 change: 0 additions & 1 deletion packages/pm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"./history": "./src/history/index.ts",
"./inputrules": "./src/inputrules/index.ts",
"./keymap": "./src/keymap/index.ts",
"./kushan": "./src/kushan.ts",
"./model": "./src/model/index.ts",
"./orderedmap": "./src/orderedmap/index.ts",
"./package.json": "./package.json",
Expand Down

0 comments on commit 6cad1a3

Please sign in to comment.