Skip to content

Commit da38235

Browse files
committed
Refactor package.json
1 parent a5e8993 commit da38235

File tree

10 files changed

+49
-71
lines changed

10 files changed

+49
-71
lines changed

.prettierignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
coverage/
2-
*.json
31
*.md
2+
coverage/

package.json

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,9 @@
11
{
2-
"name": "remark-gfm",
3-
"version": "4.0.0",
4-
"description": "remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)",
5-
"license": "MIT",
6-
"keywords": [
7-
"autolink",
8-
"footnote",
9-
"gfm",
10-
"github",
11-
"markdown",
12-
"mdast",
13-
"plugin",
14-
"remark",
15-
"remark-plugin",
16-
"strikethrough",
17-
"table",
18-
"tasklist",
19-
"unified"
20-
],
21-
"repository": "remarkjs/remark-gfm",
22-
"bugs": "https://github.com/remarkjs/remark-gfm/issues",
23-
"funding": {
24-
"type": "opencollective",
25-
"url": "https://opencollective.com/unified"
26-
},
272
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/remarkjs/remark-gfm/issues",
284
"contributors": [
295
"Titus Wormer <[email protected]> (https://wooorm.com)"
306
],
31-
"sideEffects": false,
32-
"type": "module",
33-
"exports": "./index.js",
34-
"files": [
35-
"lib/",
36-
"index.d.ts",
37-
"index.js"
38-
],
397
"dependencies": {
408
"@types/mdast": "^4.0.0",
419
"mdast-util-gfm": "^3.0.0",
@@ -44,6 +12,7 @@
4412
"remark-stringify": "^11.0.0",
4513
"unified": "^11.0.0"
4614
},
15+
"description": "remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)",
4716
"devDependencies": {
4817
"@types/node": "^22.0.0",
4918
"c8": "^10.0.0",
@@ -58,14 +27,33 @@
5827
"typescript": "^5.0.0",
5928
"xo": "^0.60.0"
6029
},
61-
"scripts": {
62-
"build": "tsc --build --clean && tsc --build && type-coverage",
63-
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
64-
"prepack": "npm run build && npm run format",
65-
"test": "npm run build && npm run format && npm run test-coverage",
66-
"test-api": "node --conditions development test/index.js",
67-
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
30+
"exports": "./index.js",
31+
"files": [
32+
"index.d.ts",
33+
"index.js",
34+
"lib/"
35+
],
36+
"funding": {
37+
"type": "opencollective",
38+
"url": "https://opencollective.com/unified"
6839
},
40+
"keywords": [
41+
"autolink",
42+
"footnote",
43+
"gfm",
44+
"github",
45+
"markdown",
46+
"mdast",
47+
"plugin",
48+
"remark",
49+
"remark-plugin",
50+
"strikethrough",
51+
"table",
52+
"tasklist",
53+
"unified"
54+
],
55+
"license": "MIT",
56+
"name": "remark-gfm",
6957
"prettier": {
7058
"bracketSpacing": false,
7159
"singleQuote": true,
@@ -79,12 +67,22 @@
7967
"remark-preset-wooorm"
8068
]
8169
},
70+
"repository": "remarkjs/remark-gfm",
71+
"scripts": {
72+
"build": "tsc --build --clean && tsc --build && type-coverage",
73+
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
74+
"prepack": "npm run build && npm run format",
75+
"test": "npm run build && npm run format && npm run test-coverage",
76+
"test-api": "node --conditions development test/index.js",
77+
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
78+
},
79+
"sideEffects": false,
8280
"typeCoverage": {
8381
"atLeast": 100,
84-
"detail": true,
85-
"ignoreCatch": true,
8682
"strict": true
8783
},
84+
"type": "module",
85+
"version": "4.0.0",
8886
"xo": {
8987
"overrides": [
9088
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"singleTilde": false
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"tablePipeAlign": false
3-
}
3+
}

test/fixtures/table-no-align/tree.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
"children": [
44
{
55
"type": "table",
6-
"align": [
7-
null,
8-
"left",
9-
"right",
10-
"center"
11-
],
6+
"align": [null, "left", "right", "center"],
127
"children": [
138
{
149
"type": "tableRow",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"tableCellPadding": false
3-
}
3+
}

test/fixtures/table-no-padding/tree.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
"children": [
44
{
55
"type": "table",
6-
"align": [
7-
null,
8-
"left",
9-
"right",
10-
"center"
11-
],
6+
"align": [null, "left", "right", "center"],
127
"children": [
138
{
149
"type": "tableRow",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"stringLength": "this is overwritten in `test/index.js`"
3-
}
3+
}

test/fixtures/table-string-length/tree.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"children": [
44
{
55
"type": "table",
6-
"align": [
7-
null,
8-
null,
9-
null
10-
],
6+
"align": [null, null, null],
117
"children": [
128
{
139
"type": "tableRow",

test/fixtures/table/tree.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
"children": [
44
{
55
"type": "table",
6-
"align": [
7-
null,
8-
"left",
9-
"right",
10-
"center"
11-
],
6+
"align": [null, "left", "right", "center"],
127
"children": [
138
{
149
"type": "tableRow",

0 commit comments

Comments
 (0)