Skip to content

Commit

Permalink
Refactor package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 20, 2025
1 parent a5e8993 commit da38235
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 71 deletions.
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
coverage/
*.json
*.md
coverage/
82 changes: 40 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
{
"name": "remark-gfm",
"version": "4.0.0",
"description": "remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)",
"license": "MIT",
"keywords": [
"autolink",
"footnote",
"gfm",
"github",
"markdown",
"mdast",
"plugin",
"remark",
"remark-plugin",
"strikethrough",
"table",
"tasklist",
"unified"
],
"repository": "remarkjs/remark-gfm",
"bugs": "https://github.com/remarkjs/remark-gfm/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"bugs": "https://github.com/remarkjs/remark-gfm/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-gfm": "^3.0.0",
Expand All @@ -44,6 +12,7 @@
"remark-stringify": "^11.0.0",
"unified": "^11.0.0"
},
"description": "remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)",
"devDependencies": {
"@types/node": "^22.0.0",
"c8": "^10.0.0",
Expand All @@ -58,14 +27,33 @@
"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": [
"autolink",
"footnote",
"gfm",
"github",
"markdown",
"mdast",
"plugin",
"remark",
"remark-plugin",
"strikethrough",
"table",
"tasklist",
"unified"
],
"license": "MIT",
"name": "remark-gfm",
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
Expand All @@ -79,12 +67,22 @@
"remark-preset-wooorm"
]
},
"repository": "remarkjs/remark-gfm",
"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"
},
"sideEffects": false,
"typeCoverage": {
"atLeast": 100,
"detail": true,
"ignoreCatch": true,
"strict": true
},
"type": "module",
"version": "4.0.0",
"xo": {
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/strikethrough-not-one/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"singleTilde": false
}
}
2 changes: 1 addition & 1 deletion test/fixtures/table-no-align/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"tablePipeAlign": false
}
}
7 changes: 1 addition & 6 deletions test/fixtures/table-no-align/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
"children": [
{
"type": "table",
"align": [
null,
"left",
"right",
"center"
],
"align": [null, "left", "right", "center"],
"children": [
{
"type": "tableRow",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/table-no-padding/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"tableCellPadding": false
}
}
7 changes: 1 addition & 6 deletions test/fixtures/table-no-padding/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
"children": [
{
"type": "table",
"align": [
null,
"left",
"right",
"center"
],
"align": [null, "left", "right", "center"],
"children": [
{
"type": "tableRow",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/table-string-length/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"stringLength": "this is overwritten in `test/index.js`"
}
}
6 changes: 1 addition & 5 deletions test/fixtures/table-string-length/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"children": [
{
"type": "table",
"align": [
null,
null,
null
],
"align": [null, null, null],
"children": [
{
"type": "tableRow",
Expand Down
7 changes: 1 addition & 6 deletions test/fixtures/table/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
"children": [
{
"type": "table",
"align": [
null,
"left",
"right",
"center"
],
"align": [null, "left", "right", "center"],
"children": [
{
"type": "tableRow",
Expand Down

0 comments on commit da38235

Please sign in to comment.