Refactor package.json

This commit is contained in:
Titus Wormer 2025-01-22 16:01:59 +01:00
parent f2eefc2418
commit 7e9a5a78b8
No known key found for this signature in database
GPG key ID: E6E581152ED04E2E

View file

@ -1,43 +1,16 @@
{
"name": "remark-directive",
"version": "3.0.0",
"description": "remark plugin to support directives",
"license": "MIT",
"keywords": [
"container",
"directive",
"generic",
"markdown",
"mdast",
"plugin",
"remark",
"remark-plugin",
"unified"
],
"repository": "remarkjs/remark-directive",
"bugs": "https://github.com/remarkjs/remark-directive/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"bugs": "https://github.com/remarkjs/remark-directive/issues",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"sideEffects": false,
"type": "module",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
"index.js"
],
"dependencies": {
"@types/mdast": "^4.0.0",
"mdast-util-directive": "^3.0.0",
"micromark-extension-directive": "^3.0.0",
"unified": "^11.0.0"
},
"description": "remark plugin to support directives",
"devDependencies": {
"@types/node": "^22.0.0",
"c8": "^10.0.0",
@ -51,14 +24,29 @@
"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/index.js",
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
"exports": "./index.js",
"files": [
"index.d.ts",
"index.js",
"lib/"
],
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"keywords": [
"container",
"directive",
"generic",
"markdown",
"mdast",
"plugin",
"remark-plugin",
"remark",
"unified"
],
"license": "MIT",
"name": "remark-directive",
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
@ -72,12 +60,22 @@
"remark-preset-wooorm"
]
},
"repository": "remarkjs/remark-directive",
"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-api": "node --conditions development test/index.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": "3.0.0",
"xo": {
"overrides": [
{