From 7e9a5a78b85cb2806bd6183af7ade73a18f6af54 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 22 Jan 2025 16:01:59 +0100 Subject: [PATCH] Refactor `package.json` --- package.json | 74 +++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/package.json b/package.json index f653dab..8972c2f 100644 --- a/package.json +++ b/package.json @@ -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 (https://wooorm.com)", + "bugs": "https://github.com/remarkjs/remark-directive/issues", "contributors": [ "Titus Wormer (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": [ {