remark-mdx-frontmatter
Advanced tools
Comparing version 4.0.0 to 5.0.0
{ | ||
"name": "remark-mdx-frontmatter", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "A remark plugin for converting frontmatter metadata into MDX exports", | ||
@@ -8,3 +8,4 @@ "author": "Remco Haszing <remcohaszing@gmail.com>", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": "./dist/remark-mdx-frontmatter.js", | ||
"main": "./dist/remark-mdx-frontmatter.js", | ||
"repository": "remcohaszing/remark-mdx-frontmatter", | ||
@@ -27,8 +28,10 @@ "bugs": "https://github.com/remcohaszing/remark-mdx-frontmatter/issues", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
"dist", | ||
"src", | ||
"!test*" | ||
], | ||
"scripts": { | ||
"prepack": "tsc --noEmit false", | ||
"test": "c8 tsx ./test.ts" | ||
"prepack": "tsc --build", | ||
"pretest": "tsc --build", | ||
"test": "c8 node --test" | ||
}, | ||
@@ -46,3 +49,3 @@ "dependencies": { | ||
"@types/node": "*", | ||
"c8": "^8.0.0", | ||
"c8": "^10.0.0", | ||
"eslint": "^8.0.0", | ||
@@ -54,8 +57,8 @@ "eslint-config-remcohaszing": "^10.0.0", | ||
"prettier": "^3.0.0", | ||
"remark-cli": "^11.0.0", | ||
"remark-cli": "^12.0.0", | ||
"remark-frontmatter": "^5.0.0", | ||
"remark-preset-remcohaszing": "^2.0.0", | ||
"tsx": "^3.0.0", | ||
"remark-preset-remcohaszing": "^3.0.0", | ||
"snapshot-fixtures": "^1.0.0", | ||
"typescript": "^5.0.0" | ||
} | ||
} |
@@ -52,7 +52,7 @@ # remark-mdx-frontmatter | ||
const { contents } = await compile(await readFile('example.mdx'), { | ||
const { value } = await compile(await readFile('example.mdx'), { | ||
jsx: true, | ||
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter] | ||
}) | ||
console.log(contents) | ||
console.log(value) | ||
``` | ||
@@ -59,0 +59,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18275
13
273
1