prosemirror-highlight
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "prosemirror-highlight", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"packageManager": "pnpm@8.10.0", | ||
@@ -18,17 +18,14 @@ "description": "A ProseMirror plugin to highlight code blocks", | ||
"sideEffects": false, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "./src/index.ts", | ||
"module": "./src/index.ts", | ||
"types": "./src/index.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
"default": "./src/index.ts" | ||
}, | ||
"./lowlight": { | ||
"types": "./dist/lowlight.d.ts", | ||
"default": "./dist/lowlight.js" | ||
"default": "./src/lowlight.ts" | ||
}, | ||
"./shiki": { | ||
"types": "./dist/shiki.d.ts", | ||
"default": "./dist/shiki.js" | ||
"default": "./src/shiki.ts" | ||
} | ||
@@ -39,2 +36,12 @@ }, | ||
], | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsup", | ||
"lint": "eslint .", | ||
"fix": "eslint --fix . && prettier --write .", | ||
"prepublishOnly": "nr build", | ||
"start": "esno src/index.ts", | ||
"test": "vitest", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"peerDependencies": { | ||
@@ -90,2 +97,29 @@ "@types/hast": "^3.0.0", | ||
}, | ||
"publishConfig": { | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./lowlight": { | ||
"types": "./dist/lowlight.d.ts", | ||
"default": "./dist/lowlight.js" | ||
}, | ||
"./shiki": { | ||
"types": "./dist/shiki.d.ts", | ||
"default": "./dist/shiki.js" | ||
} | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./dist/*", | ||
"./dist/index.d.ts" | ||
] | ||
} | ||
} | ||
}, | ||
"renovate": { | ||
@@ -95,20 +129,3 @@ "extends": [ | ||
] | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsup", | ||
"lint": "eslint .", | ||
"fix": "eslint --fix . && prettier --write .", | ||
"start": "esno src/index.ts", | ||
"test": "vitest", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./dist/*", | ||
"./dist/index.d.ts" | ||
] | ||
} | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ # prosemirror-highlight | ||
Highlight your code blocks in ProseMirror, with any syntax highlighter you want. | ||
Highlight your code blocks in [ProseMirror], with any syntax highlighter you want. | ||
@@ -43,2 +43,6 @@ ## Usage | ||
## Online demo | ||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/ocavue/prosemirror-highlight?file=playground%2Fmain.ts) | ||
## Credits | ||
@@ -52,2 +56,3 @@ | ||
[ProseMirror]: https://prosemirror.net | ||
[prosemirror-highlightjs]: https://github.com/b-kelly/prosemirror-highlightjs | ||
@@ -54,0 +59,0 @@ [lowlight]: https://github.com/wooorm/lowlight |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145071
59