Make micromark-core-commonmark a direct dependency to satisfy strict dependency resolution (e.g., pnpm).

This commit is contained in:
David Anson 2024-12-31 03:36:56 +00:00
parent 795eac22de
commit ef70472df7
2 changed files with 3 additions and 2 deletions

View file

@ -6,8 +6,8 @@ import { gfmFootnote } from "micromark-extension-gfm-footnote";
import { gfmTable } from "micromark-extension-gfm-table";
import { math } from "micromark-extension-math";
import { parse as micromarkParse, postprocess as micromarkPostprocess, preprocess as micromarkPreprocess } from "micromark";
// micromark-core-commonmark is not a dependency because this instance must match what's used by micromark
// eslint-disable-next-line n/no-extraneous-import
// micromark-core-commonmark must exactly match what's used by micromark for the shim below to work correctly
// Unfortunately, omitting this dependency from package.json breaks strict dependency resolution (e.g., pnpm)
import { labelEnd } from "micromark-core-commonmark";
import { isHtmlFlowComment } from "../helpers/micromark-helpers.cjs";
import { flatTokensSymbol, htmlFlowSymbol, newLineRe } from "../helpers/shared.cjs";