fix: don't export block or inline (#3427)
Some checks are pending
Tests / UnitTests (18) (push) Waiting to run
Tests / UnitTests (latest) (push) Waiting to run
Tests / UnitTests (lts/*) (push) Waiting to run
Tests / OtherTests (push) Waiting to run
Tests / Release (push) Blocked by required conditions

This commit is contained in:
Tony Brix 2024-08-25 21:54:03 -06:00 committed by GitHub
parent 447f5af7e4
commit 3f0430a45e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View File

@ -87,7 +87,7 @@
"build:docs": "npm run build && node docs/build.js",
"build:man": "marked-man man/marked.1.md > man/marked.1",
"build:reset": "git checkout upstream/master lib/marked.cjs lib/marked.umd.js lib/marked.esm.js marked.min.js",
"build:types": "tsc && dts-bundle-generator --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --project tsconfig.json -o lib/marked.d.cts src/marked.ts",
"build:types": "tsc && dts-bundle-generator --export-referenced-types --project tsconfig.json -o lib/marked.d.ts src/marked.ts && dts-bundle-generator --export-referenced-types --project tsconfig.json -o lib/marked.d.cts src/marked.ts",
"lint": "eslint --fix",
"rollup": "rollup -c rollup.config.js",
"rules": "node test/rules.js",

View File

@ -117,5 +117,4 @@ export { _TextRenderer as TextRenderer } from './TextRenderer.ts';
export { _Hooks as Hooks } from './Hooks.ts';
export { Marked } from './Instance.ts';
export type * from './MarkedOptions.ts';
export type * from './rules.ts';
export type * from './Tokens.ts';

View File

@ -370,3 +370,11 @@ marked.use({
}
}
});
// @ts-expect-error block is not exported
import { block } from 'marked';
// @ts-expect-error inline is not exported
import { inline } from 'marked';
// Rules is exported
import type { Rules } from 'marked';