mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add "exports" to package.json, use it to limit what's exported, leave "main" for compatability.
This commit is contained in:
parent
51cec76c2b
commit
1dba010ea9
2 changed files with 8 additions and 3 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
"name": "markdownlint-rule-helpers",
|
"name": "markdownlint-rule-helpers",
|
||||||
"version": "0.17.0",
|
"version": "0.17.0",
|
||||||
"description": "A collection of markdownlint helper functions for custom rules",
|
"description": "A collection of markdownlint helper functions for custom rules",
|
||||||
"main": "helpers.js",
|
"main": "./helpers.js",
|
||||||
|
"exports": "./helpers.js",
|
||||||
"author": "David Anson (https://dlaa.me/)",
|
"author": "David Anson (https://dlaa.me/)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/DavidAnson/markdownlint",
|
"homepage": "https://github.com/DavidAnson/markdownlint",
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,12 @@
|
||||||
"version": "0.26.0",
|
"version": "0.26.0",
|
||||||
"description": "A Node.js style checker and lint tool for Markdown/CommonMark files.",
|
"description": "A Node.js style checker and lint tool for Markdown/CommonMark files.",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "lib/markdownlint.js",
|
"main": "./lib/markdownlint.js",
|
||||||
"types": "lib/markdownlint.d.ts",
|
"exports": {
|
||||||
|
".": "./lib/markdownlint.js",
|
||||||
|
"./helpers": "./helpers/helpers.js"
|
||||||
|
},
|
||||||
|
"types": "./lib/markdownlint.d.ts",
|
||||||
"author": "David Anson (https://dlaa.me/)",
|
"author": "David Anson (https://dlaa.me/)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/DavidAnson/markdownlint",
|
"homepage": "https://github.com/DavidAnson/markdownlint",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue