Skip to content

Commit

Permalink
Refactor package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 3, 2025
1 parent 6a63f71 commit 6275528
Showing 1 changed file with 36 additions and 39 deletions.
75 changes: 36 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,17 @@
{
"name": "rehype-highlight",
"version": "7.0.1",
"description": "rehype plugin to highlight code blocks with lowlight (highlight.js)",
"license": "MIT",
"keywords": [
"unified",
"rehype",
"rehype-plugin",
"plugin",
"html",
"hast",
"syntax",
"highlight",
"highlighting"
],
"repository": "rehypejs/rehype-highlight",
"bugs": "https://github.com/rehypejs/rehype-highlight/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
"bugs": "https://github.com/rehypejs/rehype-highlight/issues",
"contributors": [
"Titus Wormer <[email protected]> (https://wooorm.com)"
],
"sideEffects": false,
"type": "module",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts.map",
"index.d.ts",
"index.js"
],
"dependencies": {
"@types/hast": "^3.0.0",
"hast-util-to-text": "^4.0.0",
"lowlight": "^3.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.0"
},
"description": "rehype plugin to highlight code blocks with lowlight (highlight.js)",
"devDependencies": {
"@types/node": "^22.0.0",
"c8": "^10.0.0",
Expand All @@ -51,14 +23,30 @@
"typescript": "^5.0.0",
"xo": "^0.60.0"
},
"scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
"prepack": "npm run build && npm run format",
"test": "npm run build && npm run format && npm run test-coverage",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
"exports": "./index.js",
"files": [
"index.d.ts.map",
"index.d.ts",
"index.js",
"lib/"
],
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"keywords": [
"hast",
"highlighting",
"highlight",
"html",
"plugin",
"rehype-plugin",
"rehype",
"syntax",
"unified"
],
"license": "MIT",
"name": "rehype-highlight",
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
Expand All @@ -72,12 +60,21 @@
"remark-preset-wooorm"
]
},
"repository": "rehypejs/rehype-highlight",
"scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"sideEffects": false,
"typeCoverage": {
"atLeast": 100,
"detail": true,
"ignoreCatch": true,
"strict": true
},
"type": "module",
"version": "7.0.1",
"xo": {
"prettier": true,
"rules": {
Expand Down

0 comments on commit 6275528

Please sign in to comment.